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).
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.
Now, I tried the following rewrite rule
RewriteRule ^([A-Za-z0-9-]+)/$ sections/$1
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?
This topic is now closed. New replies are no longer allowed.