Forum Moderators: phranque
If someone could kindly post the snippet of code needed to do this with an .htaccess file I would greatly appreciate it. Just an example using a couple interior pages as well as my index page should be sufficient for me to figure out how to do it with all my pages. I don't have too many pages so I don't mind redirecting each page.
Thank you for any help.
If not, simply put
Redirect 301 / http://www.[b]new[/b]domain.com
Jim
If you need to change a few page-URLs, you can use your individual Redirects, and then follow them with the code I posted above to handle the page-URLs that did not change:
# Redirect a few pages to new page URLs on new site
Redirect 301 /big-red-widgets.html http://www.newsite.com/redwidgets.html
Redirect 301 /index.html http://www.newsite.com/
#
# Redirect all the rest of the pages and objects to the corresponding files on the new domain
Redirect 301 / http://www.newsite.com/
Therefore, the last Redirect I added above will redirect an entire site all by itself. And the only reason that the two preceding lines are needed is because you've changed the page name, so you don't want the old page-URLs carried forward to the new site.
Ref: [httpd.apache.org...]
Jim
[edited by: jdMorgan at 9:04 pm (utc) on Mar. 10, 2007]