I need a very simple/basic help with htaccess I have the following line in my .htaccess: RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$1 [QSA,L,E] it converts dynamic links from (for example category called: computer accessories): mysite.com/category.php?id_category=22 to mysite.com/22-computer-accessories I want it to be like: mysite.com/computer-accessories/ help plz
RewriteRule ^([a-zA-Z0-9-]*)(.*)/$ /category.php?id_category=$1 [QSA,L,E] Code (markup): Not sure if it works. You have to test it. You should also change the code in your script that handles seo friendly urls.