Forum Moderators: phranque

Message Too Old, No Replies

Multiple Redirects

Want to redirect non-www to www then redirect to another domain

         

dmje

3:42 pm on Jun 10, 2006 (gmt 0)

10+ Year Member



Months ago we redirected the non-www version of our site to the www version using mod rewrite. Now we have taken the site out of service for an overhaul and cannot figure out how to redirect all versions of the site (non-www & www) to another domain.

I have the mod rewrite in place for the direction of non-www to www, but is there a way to make a rule that will direct either version to the other domain?

jdMorgan

10:51 pm on Jun 10, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, take the conditional (RewriteCond) out of what you have now, and change the substitution URL to point to the new domain.

However, I cannot advise doing what you're planing to do... Do not redirect the site or 'take it out of service' for an overhaul. Just put up a new home page with a link to the other domain if you must, but I'd advise you to leave the old site up, design, develop, and test the new site, add redirect code for any old URLs that absolutely must change, upload it to your production server in an alternate filespace (subdomain/subdirectory), test it again, and then throw the switch (rewrite all URLs to the new subdirectory or rename the subdirectory) all at once.

Taking the domain down will have two major effects, neither of them good:

1) It looks very unprofessional, since there's no technical reason to do it.
2) You will lose most of your search engine ranking and incoming links, a good bit of both forever.

The above may not apply if you must change the site for legal reasons, but otherwise, there are very few good reasons to kill a site like this.

Best of luck,
Jim