You can use a negative view:
Options +FollowSymLinks -MultiViews # Turn mod_rewrite on RewriteEngine On RewriteBase / # If the request is not for a valid file RewriteCond %{REQUEST_FILENAME} !-f # If the request is not for a valid directory RewriteCond %{REQUEST_FILENAME} !-d # redirect to /Project1/ if it is not already /Project1/ RewriteRule ^((?!Project1/).*)$ Project1//$1 [L,NC]
source share