Greg
05-13-2007, 08:01 AM
I know how to do a single-file redirect using the .htaccess file in the Apache web server, but is there a way to do a global redirect for the whole domain including any subdomains?
Strategic thinking: It might be best to redirect *.simshost.com/*.* to *.sunsims.com/*.*, including any links to things in subdirectories. That would avoid broken links, especially to images under thesims2.simshost.com, while also avoiding having to keep the simshost.com domain operating as a unique site.
If I can just substitute "sunsims.com" for "simshost.com" in any URL that points to *.simshost.com, and have the web server deliver the right file, that will solve a lot of problems.
It must be possible with some kind of rewrite rules but I'm no expert with rewrite rules.
Strategic thinking: It might be best to redirect *.simshost.com/*.* to *.sunsims.com/*.*, including any links to things in subdirectories. That would avoid broken links, especially to images under thesims2.simshost.com, while also avoiding having to keep the simshost.com domain operating as a unique site.
If I can just substitute "sunsims.com" for "simshost.com" in any URL that points to *.simshost.com, and have the web server deliver the right file, that will solve a lot of problems.
It must be possible with some kind of rewrite rules but I'm no expert with rewrite rules.