I am trying to use mod redirect for the first time and finding it a bit confusing.
I would like the url page.cgi?part=12345 to become /1/12345.html
and page.cgi?part=GHF426 to /G/GHF426.html
How can I do this with the first char as a directory or would I be better off to just leave the first directory bit off?
I've got this so far
RewriteEngine on
RewriteRule ^page.cgi?part=([]+) $1 [L]
I would like the url page.cgi?part=12345 to become /1/12345.html
and page.cgi?part=GHF426 to /G/GHF426.html
How can I do this with the first char as a directory or would I be better off to just leave the first directory bit off?
I've got this so far
RewriteEngine on
RewriteRule ^page.cgi?part=([]+) $1 [L]