I have a UDT for say products (nothing to do with Products module, just easy to understand example) that can be called with or without GET parameter. So it can be accessed as http://site/cmsms/test/products and http://site/cmsms/test/products?id=123. Now I would like to make URLs with parameters prettier and possibly more SEF, something like http://site/cmsms/test/products/title/123 where title does nothing but looks pretty.
I have expanded the standard rules with one line, the first RewriteRule below.
Code: Select all
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /cmsms/test
RewriteRule ^produ/([a-z]+)/([0-9]+)$ products?id=$2 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
</IfModule>
I have tried different RewriteCond to run the above rule only if there's parameters but have not been able to get it work.
I'm running 1.9.4.1 on Ubuntu Server 10.04. With mod_rewrite enabled in the config.php, obviously

Any advice is appreciated!