I am building a website that will have categories, and I want to access them through the URL.
Example:
http://website.com/category-1/category-2
There is no limit to the number of categories that there could be, so there could be 1 or their could be 1,000.
What would I have to do to make a rewrite that could support many categories? I will then be passing it to php to parse.
Here is what I have tried (Gives 404):
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.+)$ /category.php?params=$1 [L,QSA]