This rule is too greedy, "my-dir" should only redirect when it is the root directory e.g. /my-dir
RewriteRule ^my-dir/(.*)$ new-dir/my-dir$1 [R=301,L]
But this rule does not work at all!
RewriteRule ^/my-dir/(.*)$ new-dir/my-dir$1 [R=301,L]
|
This rule is too greedy, "my-dir" should only redirect when it is the root directory e.g. /my-dir
But this rule does not work at all!
| |||
|
feedback
|
RewriteLogandRewriteLogLevel). This should help you solve the problem. – larsks Jan 10 '11 at 21:36