Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

redirecting my entire site.

Status
Not open for further replies.

Halcrow

Programmer
Aug 24, 2004
76
GB
hello everybody!

I want to redirect my old site ( to my new site (
I've set up an .htaccess file, containing the line:
Code:
RedirectPermanent / [URL unfurl="true"]http://www.newsite.com/[/URL]
which should redirect every page on the old site to the main page of the newsite (thats what I read, anyway) - but it doesn't. Any existing page on the old site (e.g. when typed into the browser, comes up with an "The Page Cannot be Found" error - and the URL becomes
The host that I'm using is old and contains no support for php, SSI etc, so maybe its .htaccess support is limited as well. Could this be the problem? If not, does anyone have any ideas?

Thankyou :)
Calum
 
Can you use a custom error document in httpd.conf?

ErrorDocument 404 "
If I understand correctly, the new site doesn't have the same pages as the old one (which makes sense). I think this is the only way to catch those, other than a rewrite rule for each page.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top