a question for server gurus

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mrtwister
    Registered User
    • Jan 2005
    • 23

    #1

    a question for server gurus

    Hi.. I have been trying to get the guy who hosts my domain to have it forward to a different address. He can do this however he does not know how to make it forward the paths as well. So I am potentially losing a lot of 404 traffic and I cannot setup sub dirs or anything because the forwarding wont work correctly. How does one do this for Apache? Is there a certain rewrite rule needed or something in the .htaccess file?


    Thanks!
  • SplitInfinity
    Confirmed User
    • Dec 2002
    • 3047

    #2
    ReDirect / http://www.newsite.com/

    :-)

    Should work just fine.
    If you want to omit the paths after the domain and make all the traffic go to the main site on the new domain, do it like this:

    ReDirect / http://www.newdomain.com/?

    :-)
    Anything after the ? will be disposed of because they will be treated as query strings. :-)

    SplitInfinity should be hosting you if your host cant do that. :-)

    Comment

    • JFPdude
      Confirmed User
      • Jan 2002
      • 4027

      #3
      I may know the answer to that. :food-smil


      Btw who's the host?


      ICQ 44-33-144

      Comment

      • Mrtwister
        Registered User
        • Jan 2005
        • 23

        #4
        Originally posted by SplitInfinity
        ReDirect / http://www.newsite.com/

        :-)

        Should work just fine.
        If you want to omit the paths after the domain and make all the traffic go to the main site on the new domain, do it like this:

        ReDirect / http://www.newdomain.com/?

        :-)
        Anything after the ? will be disposed of because they will be treated as query strings. :-)

        SplitInfinity should be hosting you if your host cant do that. :-)
        Is that the htaccess file? They arent exactly hosting me.. just forwarding some of my domains. They are having their server do it I think somehow.. it works through an invis frame so it hides the original ip. Works fine cept it wont forward the paths. Frustrating the shit out of me.
        Last edited by Mrtwister; 03-01-2005, 06:22 PM.

        Comment

        • webair
          Confirmed User
          • Feb 2002
          • 8531

          #5
          Mrtwister get with me i'll give you a tech to help you out with your issue...there are a few ways to address this
          Last edited by webair; 03-01-2005, 06:23 PM.


          ~ Webair Dedicated Cloud Serversâ„¢ ~ WEBAIR VSYSâ„¢ Virtual Hosting Platform ~ Superior CDN Network ~
          ~ Managed Dedicated hosting Specialists ~ DISCOUNT DOMAIN NAMES! ~ WEBAIR FUSION IO MANAGED CLOUD SERVERS! ~


          ICQ: 243116321 - TWITTER - @WEBAIRINC - E-Mail: [email protected]

          Comment

          • SplitInfinity
            Confirmed User
            • Dec 2002
            • 3047

            #6
            You can plop that into the httpd.conf file in your OLD domains Virtual host definitions.... Here is an example:

            <VirtualHost 216.188.28.15>
            ReDirect / http://www.geekypeople.com/?

            # The below is no longer needed if were redirecting entirely the domain on this ip
            #DocumentRoot /home/admin/bettorsearch.com/public_html

            ServerAlias webhelium.com *.webhelium.com
            ServerName www.webhelium.com
            </VirtualHost>

            Comment

            • SplitInfinity
              Confirmed User
              • Dec 2002
              • 3047

              #7
              Note, you can also specify the TYPE of redirect:

              Redirect permanent /foo http://www.example.com/bar

              Comment

              • toddler
                Confirmed User
                • Jun 2002
                • 1911

                #8
                slap a 301 in there, make it permanent.
                http://www.flickr.com/photos/zoddler/

                Comment

                • Mrtwister
                  Registered User
                  • Jan 2005
                  • 23

                  #9
                  Originally posted by SplitInfinity
                  You can plop that into the httpd.conf file in your OLD domains Virtual host definitions.... Here is an example:

                  <VirtualHost 216.188.28.15>
                  ReDirect / http://www.geekypeople.com/?

                  # The below is no longer needed if were redirecting entirely the domain on this ip
                  #DocumentRoot /home/admin/bettorsearch.com/public_html

                  ServerAlias webhelium.com *.webhelium.com
                  ServerName www.webhelium.com
                  </VirtualHost>
                  Will this work with an invisible frame to mask the url? and /? is if I dont want the directories displayed? I want the directories and all other files to show up as is on my server. So www.blah.com/hello will go to diffaddress.com/hello but still show www.blah.com in the address bar.

                  Thanks for your help. Much appreciated!

                  Comment

                  • SplitInfinity
                    Confirmed User
                    • Dec 2002
                    • 3047

                    #10
                    Yeah it should work just fine. You just dont use the ? for that and it will work just like you want it to. You dont even need a hidden frame.

                    Comment

                    Working...