RewriteRule for URL Subdirectory Root
- by JYerdon
Have not found this in my searches on SE.
I need this scenario to work:
• User visits someurl.com/news/folder or someurl.com/news/somefolder/, they get redirected to someurl.com/somefolder.
• If the user visits JUST someurl.com/news or /news/, they are allowed through to visit /news.
Here is my current rule: RewriteRule ^news/(.*) /$1…