Hi everyone. So a client I'm working with needed help with a redirect. I've successfully implemented a redirect of a page that no longer exists in another store and thought it would work the same here. But it's not working at all and I'm wondering if it could be because of a difference in where the store was installed. The previous store was installed in the root public_html and the store I'm working on now is in a domain subfolder (/secondstore.com/)
In the first store was able to add the following CODE to the htaccess_for_page_not_found_redirects.htaccess file in the extras/ folder and it works!
In the new store they want to redirect a page that never existed. They wanted to basic create a link www.secondstore.com/ManufacturerName/ and redirect it to Zen Cart Url http://www.secondstore.com/index.php...d=19&chapter=2Code:redirect 301 /products.html http://firststore.com/index.php
So naturally I just put the following line of code into the htaccess_for_page_not_found_redirects.htaccess file in the extras/ folder for this store.
The result isCode:redirect 301 /ManufacturerName http://www.secondstore.com/index.php?main_page=page&id=19&chapter=2
And I can't figure what the difference is. I do notice when I compare the two config files the 1st store has HTTP_SERVER defined without the www. and this second has the HTTP_SERVER configured with the www. (not sure if that if part of the problem.)Code:Not Found The requested URL /ManufacturerName was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Any Ideas?
Thanks,
Andy



Reply With Quote


Bookmarks