RewriteEngine on RewriteBase /careers4sin/ ## If requested file exists we're happy RewriteCond %{REQUEST_FILENAME} -f RewriteRule (.*) $1 [L] ## If not a file (no dot) send to webroots index RewriteRule ^([^/]+)/?([^.]*)$ $1/webroot/index.php?url=$2 [QSA,L] ## If its a file look in projects webrrot RewriteRule ^([^/]+)/(.*)$ $1/webroot/$2 ## If its not there look in app's webroot RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^/]+)/(.*)$ app/$2 [L]