How do I rewrite url ?id=1 on item 1 in htaccess
-
I need to rewrite these kindurles.
/blog/item/view_topic.php?id=1 /blog/item/view_topic.php?id=2 ... /blog/item/view_topic.php?id=100
at:
/blog/item/1 /blog/item/2 ... /blog/item/100
What you need to write in the file. .htaccess? Help me, please, this is the dark forest.
-
RewriteCond %{QUERY_STRING} ^id=(\d)+ RewriteRule ^blog/item/view_topic.php$ /blog/item/%1