Forum Moderators: phranque
I'm looking for some advice/pointers on how I can accomplish this (if possible).
pagea.html?page=1 -> /pagea/1.html
pageb.html?page=2 -> /pageb/2.html
The above rewrite is no problem, however the following page might also exist.
someotherpage.html?page=7 -> /someotherpage/7.html
So the issue is that I have no set of fixed filenames to list in my .htaccess
I probably use a condition check, see if there's a
?page= parameter but I am lost with the "dynamic" filename.
If anyone could shed some light if this is possible,
I would be very gratefull.
Regards,
Ddans
Welcome to WebmasterWorld [webmasterworld.com]!
RewriteCond %{QUERY_STRING} ^page=([0-9]+)
RewriteRule ^(.*)\.html$ /$1/%1.html? [L]
Jim