I'm trying to convert all requests in the format:
/portfolio/picturename.htm
('portfolio' is constant)
to this:
/?picturename
So (thanks to users here) I have this solution which works for files that don't exist:
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^portfolio/(.+)\.htm$ /?$1 [R,NC,L]
But: How do I also have this apply to files that exist? I'd like the redirect to happen under all circumstances.