Reputation: 947
I am trying to figure out how to redirect a sub directory to deeper sub directory. I would like to do something like this:
Redirect /subdir1 to /subdir1/subdir2/subdir3
Eveything I have tried either just does not work or gets into an infinite loop.
Ideas?
Upvotes: 2
Views: 631
Reputation: 784908
You can use RedirectMatch
instead for its regex capabilities:
RedirectMatch ^/subdir1/?$ /subdir1/subdir2/subdir3
Upvotes: 1