php - Using .htaccess to do product filtering on existing site -


in custom cms build i'm using following .htaccess file

<ifmodule mod_rewrite.c> rewriteengine on rewritebase / rewriterule ^index\.php$ - [l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . /index.php [l] </ifmodule> 

when user hits www.mysite.com script determines page load based on slug of page in database. working fine, want take 1 step further. right can www.mysite.com/products , serve me data products page. want add product filtering url. example:

www.mysite.com/products/collection/summer-collection

or

www.mysite.com/products/mens-navy-blue-blazer-19285

or

www.mysite.com/products/category/outer-wear

i have product creation module generating unique product slug already, need able modify .htaccess working.


Comments

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -