Redirecting most of a website

Soldato
Joined
18 Oct 2002
Posts
5,381
W have a medium sized .net site that is no longer required, we do however need to keep a few folders running on there as its powering a jobs area on a new site that someone else has done. (new domain)

What the safest Google way to redirect the entire site to the new domain. We cant repoint the domain because of these few folders that need to keep running so is the only way a 301 re-direct on every page point to the new site?
 
You'll want to do a mod-rewrite for everything only if the file/directory doesn't exist already, e.g.

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule blah blah blah

That's how you'd do it on Linux... You may need ISAPI rewrite or similar on your Windows box to take advantage of mod_rewrite. :o
 
Back
Top Bottom