I want to redirect users trying to access http://www.mysite.com/folder or mysite.com/folder to the home page. BUT, I don’t want it to apply if someone accesses no www or http://www.mysite.com/folder/subfolder OR when they access either no www or http://www.mysite.com/folder/awesome-page.html
I want to redirect users trying to access www.mysite.com/folder or mysite.com/folder to the home
Share
You may try this:
Will redirect
http://www.mysite.com/folderorhttp://mysite.com/foldertohttp://www.mysite.comor tohttp://mysite.com, but never when requested URL has 2 or more folders, like:http://www.mysite.com/folder/OtherFolder/...