Tutorial at: http://www.ladyada.net/library/zencart/niceurl.html
ZenCart's links for "All Products" and "New Products" are created nicely with the code modification in includes/functions/html_output.php
The bummer is that the tutorial's current .htaccess rewrite example doesn't translate the nice short & simple "New" and "All" links back into ZenCartian.
Copypasta these additional lines into .htaccess and all seems peachy:
Code: Select all
#redirect old products_all
RewriteCond %{QUERY_STRING} ^main_page=products_all$
RewriteRule ^index.php$ /all? [R=301]
#redirect old products_new
RewriteCond %{QUERY_STRING} ^main_page=products_new$
RewriteRule ^index.php$ /new? [R=301]
#rewrite back to the old page
RewriteRule ^all/ index.php?hidden=yes&main_page=products_all [QSA,L]
RewriteRule ^new/ index.php?hidden=yes&main_page=products_new [QSA,L]