
Originally Posted by
magz
...
On the old website (using an OsCommerce-based plugin for WordPress), category addresses looked like this:
/OLD_SITE/STORE/index/cpath/1/ (or whatever the category ID was)
However, when they're accessed through the redirects from the old website, they are not found and try to look like this:
/NEW_SITE/index/cpath/1/
I set up the htaccess Redirect 301 on the new website to send each /index/cpath/#/ to its corresponding meaningful URL, but although that solution worked for the product and utility pages, it did not work for the category/subcategory pages.
...
Redirect 301 /old_url/
http://new_url
It's working for products, but not for categories
...
If your category id's stayed the same during your migration you can add a RewriteRule before the rest of the CEON rules:
Code:
RewriteRule ^STORE/index/cpath/([0-9]+)/$ index\.php?main_page=index&cPath=$1&%{QUERY_STRING}
This way CEON URI Mapping will see the URI as being in the original Zen Cart format and should attempt to redirect the old page to the new page. Note: On some hosts you will need to add an extra / to the start of the URL to be matched... "RewriteRule ^/STORE"...
Alternatively you could set the URL of each category in CEON URI Mapping to the old store's URI, then change it back to the new store's URI. This will cause CEON URI Mapping to add the old URI to the "history" and know what the URI is matched it needs to redirect to the new location.