Changing the name of my site, htaccess question

Discussion in 'Apache' started by paulaa, Jul 17, 2007.

  1. #1
    Basically I am changing my site's domain name. All content will stay the same etc.

    What's the easiest way to accomplish this without loosing visitors? htaccess I assume. Not sure how to do it though.

    Let's say my site is http://yahoo.com

    I don't want to just redirect people to the index page. If they go to a page that was previously on the site I want the yahoo.com rewritten with google.com for example.

    So let's just say.

    http://yahoo.com/content/viewforum redirects to http://google.com/content/viewforum


    http://subdomain.yahoo.com/whatever redirects to http://subdomain.google.com/whatever

    Hopefully that explains what I'm trying to do. Just replace the domain name in the url, and leave everything else the same.
     
    paulaa, Jul 17, 2007 IP