Page 1 of 1

htacces rewrite url

Posted: Mon Jun 02, 2014 11:10 am
by mezned
hi

i have url like ' http://mysite.com/article.php?id=9

in my site i want to display url like ' http://mysite.com/product-nameproduct-id.html

please help me.

thank you

Re: htacces rewrite url

Posted: Mon Jun 02, 2014 11:29 am
by Celauran
Something like this, maybe?

Code: Select all

RewriteRule ^product-([\w]+)-([\d]+).html article.php?id=$2