I have run into site migration hell...
This company wanted to have the new store go up, and get only half of the traffic... So I made the old store homepage do a random redirect to a new domain where the new site is hosted. So lets say old store was www.aaa.com and the new store (zencart) is www.bbb.com.
Now we are satisfied that the store can handle the load and is functioning as expected... but all of a sudden the company wants to retain their old domain of www.aaa.com. I suggested that I can make www.aaa.com a 302, but then the URL in the address bar will show www.bbb.com. They don't like that idea. I can just migrate the site to the www.aaa.com BUT... www.bbb.com, although ONLY 2 weeks old, has over 860 links in Google ! I don't want to mess that up either...
Soooooooo....
Does it make sense to update the confirgure.php file lines:
Code:
define('HTTP_SERVER', 'http://www.aaa.com');
define('HTTP_CATALOG_SERVER', 'http://www.aaa.com');
and update it to something like:
Code:
<?php
if ($_SERVER['SERVER_NAME']=www.aaa.com) {
define('HTTP_SERVER', 'http://www.aaa.com');
define('HTTP_CATALOG_SERVER', 'http://www.aaa.com');
}
else if ($_SERVER['SERVER_NAME']=www.bbb.com) {
define('HTTP_SERVER', 'http://www.bbb.com');
define('HTTP_CATALOG_SERVER', 'http://www.bbb.com');
}
?>
??
To my knowledge this should be the only thing that is really different between the 2 domain (assuming the domains are being hosted on the same server as add-on domains).
Bookmarks