Reputation: 4164
How do I redirect all traffic from test/(.*) to http://newdomain.com/test/$1? I tried this, but that didn't work: RewriteRule ^test/(.*) http://domain.com/test/$1 [R=301,L]
Upvotes: 0
Views: 139
Reputation: 17525
I think, you need to add a slash to the beginning of the rule:
RewriteRule ^/test/(.*) http://domain.com/test/$1 [R=301,L]
Upvotes: 1