3

For my opencart site, I'm using a vQmod show_all_product.xml so that the path /index.php?route=product/category&path=0 shows all my products on a category page. It's working perfectly, but ideally what I would like to do is use a SEO friendly URL to achieve this, e.g. /viewall would give the same page.

I would much appreciate if someone could point me in the right direction.

shadyyx
  • 15,825
  • 6
  • 60
  • 95
user1258303
  • 113
  • 1
  • 1
  • 7

1 Answers1

4

First, make sure mod_rewrite is enabled.
Then, also make sure you can use htaccess (Apache config -> AllowOverride All).

Put this code in your htaccess (assuming it is in root folder, like your index.php file)

RewriteEngine On
RewriteRule ^viewall$ /index.php?route=product/category&path=0 [L]
Justin Iurman
  • 18,954
  • 3
  • 35
  • 54