helenp - 9:52 am on Apr 8, 2013 (gmt 0) [edited by: coopster at 11:02 pm (utc) on Apr 8, 2013]
* Do as I say. Not as I do.
Am trying to, hover its complicated to resist the temptation.
RewriteRule ^pets/(cat|dog|iguana|aardvark|armadillo)\.html http://www.example.com/animals/$1.php [R=301,L]
RewriteRule ^pets/([a-z]+)\.html http://www.example.com/animals/$1.php [R=301,L]
The first works perfect but is several lines long, the second sort of doesnt understand, does it match all lowever case from a-z?
All the pages I want to move starts equal ie, name_othername,
so I tried to do a shorter way changing it to:
RewriteRule ^([name]+)\.htm http://www.example.com/reviews/$1.htm [R=301,L]
But it didnt´work.
Also I tried with a wildcard wich didn´t work either:
RewriteRule ^name_(.*).htm http://www.example.com/reviews/name$1.htm [R=301,L]
[edit reason] example.com was misspelled; fixed it [/edit]
[edited by: coopster at 11:02 pm (utc) on Apr 8, 2013]