
Originally Posted by
melbournesigns
...
Previously we were running magic SEO and now our url's are slightly different.
...
The difference is the c- and p- for the categories and product codes. ...
Ultimate SEO URLs uses "anchors" (the -c-, -p-, -ez-, etc) to denote the type of page requested (category, product, ez-page, etc). These "anchors" allow a large range of flexibility with the URL formats (and avoids collisions with IDs and names). Using "anchors" also minimizes the amount of resources required to process the request and pass it along to Zen Cart (USU maps the requests directly instead of requiring database lookups).
If one knows the exact formats used by Magic SEO (and know the URLs will not result in any collisions), one can craft some custom RewriteRules in the .htaccess file to handle the old URLs from Magic SEO. One would probably want to place the custom RewriteRules after the majority of the USU rules and immediately preceding the following block of code to avoid causing any conflicts:
Code:
# All other pages
# Don't rewrite real files or directories
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index\.php?main_page=$1&%{QUERY_STRING} [L]
Bookmarks