Forum Moderators: phranque
[edited by: g1smd at 10:02 am (utc) on Feb 9, 2012]
example.com/folder/somestuffherenow will try looking in folder/c/w for content. example.com//somestuff will try looking in /c/f for content. ([^/]+/) for matching a folder level and (([^/]+/)*) useful for matching any depth of folder. The rule pattern will need to contain a literal /c/ in order to match it. redirect
example.com/p/product-name.html
to
example.com/product-name.html
RewriteRule ^p/product-name\.html http://example.com/product-name.html [R=301,L] I have been trying to use all the combinations I could with ^[a-z]/(.*) but I'm having problems with the fact that these are between / / , so I thought my approach is incorrect.
^[a-z]/(.*)