helenp - 10:54 am on Apr 8, 2013 (gmt 0) [edited by: coopster at 11:03 pm (utc) on Apr 8, 2013]
I am trying..., on this does not say what the - means:
If I undestood you correct I need something like this:
^name_([a-z-]+)\.htm$ matches literal "name_" then captures the remainder before the extension in $1.
as I want literally name_
In the particular case the pages I am doing are name_yearwithnumber so I tried
RewriteRule ^name_([0-9]+)\.htm http://www.example.com/reviews/$1.htm [R=301,L]
but of course did not work,
so I added the ones that did work,
and now they does not work either....
looks my host has some kind of cache for the htaccess so I will try in an hour again
[edit reason] example.com was misspelled; fixed it [/edit]
[edited by: coopster at 11:03 pm (utc) on Apr 8, 2013]