Forum Moderators: phranque

Message Too Old, No Replies

Whole site (every page) directing to another site?

how would I do this?

         

Harley_m

3:26 pm on Apr 20, 2004 (gmt 0)

10+ Year Member



I have just swapped a community over from one huge site to another - and am looking to close the old site down...

In doing so - I want a global re-direct from every internal page to the new site...

how would this be done?

Thanks guys,

Harley

encyclo

3:35 pm on Apr 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just to clarify, is the site structure identical on the new site - ie. has just the domain name changed? If so, if you're running Apache, why not try:

Redirect permanent / [example.com...]

in the root-level .htaccess of the old site (where example.com is the URL of the new site).

Harley_m

11:51 pm on Apr 20, 2004 (gmt 0)

10+ Year Member



nope - old site is html, 800 odd unique pages - new site is asp.net 1800 odd unique...

thanks for the help,

Harley

encyclo

12:05 am on Apr 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



OK, so it's a bit complicated then! You might want to ask the .NET gurus in the Microsoft forum (I only use Linux so I don't know .NET).

As a basic plan, you could point the DNS of the old site to toward the new server, then use .NET to script something with the 404 error page, redirecting if possible to an appropriate new page (with a 301 redirect header) based on the requested filename or search engine referrer string if available, serving a true 404 if nothing is found. How easy this is, I can't say, but .NET is reputed to be powerful stuff!