blr044 Posted August 29, 2010 Posted August 29, 2010 My old domain will expire in two months as well as the old sever. In the meantime, I have created a new store with another domain name on another server. Three quarters of products is different/new because of new vendors. Now I did insert this into the .htaccess file of old domain name which is located in the root: Options +FollowSymLinksRewriteEngine on RewriteRule (.*) http://www.greatdiscounts4u.com/$1 [R=301,L] Now I can type into browser url address bar the old domain name and it does take me to new domain. Also I created a 404 file called - 404-html.html and that is located in the root of new domain. But still seems like I am having an issue. I can type site:old-domain.com into Google url address bar, it will display all of the links that have been cached/crawled of previous domain name. Due to the fact, I still have few of the same products, but have different ID #. So all I get at new domain is, product not found. So instead, how do I get the customer to go to my 404 page instead of product not found page. I hope I have explained myself to where one can follow this. Thanks in advance. Bennett
Hotclutch Posted August 29, 2010 Posted August 29, 2010 Hi Bennet How many products are you trying to redirect? Try using this solution provided by FWR http://www.oscommerce.com/forums/topic/351086-301-redirect-issue-with-existing-rule-please-help-thanks/ I think it is much "cleaner" than htaccess which can be complex for the average webmaster.
Hotclutch Posted August 29, 2010 Posted August 29, 2010 Hi Bennet How many products are you trying to redirect? Try using this solution provided by FWR http://www.oscommerce.com/forums/topic/351086-301-redirect-issue-with-existing-rule-please-help-thanks/ I think it is much "cleaner" than htaccess which can be complex for the average webmaster. On second thought, I am not sure if that script will work if there are 2 domain names.
blr044 Posted August 29, 2010 Author Posted August 29, 2010 On second thought, I am not sure if that script will work if there are 2 domain names. I have over 1400 products on old site. But then on the new site maybe about 25% will be located at new domain name. But did give your suggestion a try though. But still, same results when at Google clicking the old links. It's just the products that will give me a No Products Found. As far as for the internal links on old web site, when ticked, it will bring the customer to new site.
blr044 Posted August 29, 2010 Author Posted August 29, 2010 What I guess I really want is, whenever a customer ticks an old product, it will take them to my 404 page instead of product not found page. Because once at 404 page, text will inform them of the move and take them to new site. I even inserted this into the .htaccess in the root of new store and the old store: ErrorDocument 404 /404-html.html Still that would direct them to the 404 page.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.