Using Htaccess To Redirect A Directory, But Not The Files In It
On my website, I've got a directory /folder with some images and html in it. I want to redirect users who try to access http://domain.com/folder to http://domain.com/ but don't wan
Solution 1:
Use RedirectMatch
instead:
RedirectMatch ^/folder$ http://example.com/
Now the URI path must exactly match /folder
.
Post a Comment for "Using Htaccess To Redirect A Directory, But Not The Files In It"