RewriteEngine on RewriteRule ^$ webroot/ [L] RewriteCond %{REQUEST_URI} !^webroot RewriteRule (.*) webroot/$1 [L]