New Zenner
- Join Date:
- Jan 2011
- Location:
- Brooklyn
- Posts:
- 75
- Plugin Contributions:
- 0
redirect 301 working on one store but on the other
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!
redirect 301 /products.html http://firststore.com/index.php
In the new store they want to redirect a page that never existed. They wanted to basic create a link https://www.secondstore.com/ManufacturerName/ and redirect it to Zen Cart Url https://www.secondstore.com/index.php?main_page=page&id=19&chapter=2
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.
redirect 301 /ManufacturerName http://www.secondstore.com/index.php?main_page=page&id=19&chapter=2
The result is
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.
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.)
Any Ideas?
Thanks,
Andy