Hi,
I am trying something with .htaccess and I am not sure if it is possible at all. I am building a website with multiple sections (not categories).
website.com/section1/
website.com/section2/
website.com/section3/
…
I will have dozens, maybe hundreds of sections like this. I want to put all the section folders in one single folder “sections” so that the root directory will not be a mess.
/images/
/includes/
/sections/
index.php
style.css
…
Now, I tried the following rewrite rule
RewriteRule ^([A-Za-z0-9-]+)/$ sections/$1
This redirects
website.com/section1/
to
website.com/sections/section1/
And in the address bar the URL is as shown above. Is there a way to remove “sections” from this URL with my current setup?