I have URLs with the following query parameters:
/list.php?id=1&name=some-stuff.html
/list.php?id=18&name=some-another-stuff.html
How can I get them to look like this
/1-some-stuff.html
or even
/some-stuff.html
I tried the following lines but I get 404 error:
RewriteCond %{QUERY_STRING} id=(\d+)&name=(\w+)
RewriteRule ^list.php /%1-%2? [L,R=301]