I am trying to rewrite multiple subdirectories to the root directory. The situation I have it that I have one folder named blog/ which would contain the main site folder and also another subdirectory called projects/ containing other folders which I want accessible from the root:
www/
blog/
work/
contact/
projects/
projectA/
projectB/
What I want, is to be able to access work/, contact/, projectA/ and projectB/ from the root directory by going to example.com/projectA or example.com/projectB for example. I would also like the blog/ directory to take priority in the case that a folder exists in both.
Currently, in my htaccess, I have this, though it just rewrites everything to blog/, removing this from the URL, though not affecting the projects/ folder.
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_URI} !(.*)site
RewriteRule ^(.*)$ site/$1
Try: