RewriteEngine on RewriteBase / RewriteCond %{HTTP_HOST} ^dev.phalapi.net$ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !^/phalapi/public/ RewriteRule ^(.*)$ /phalapi/public/$1 RewriteRule ^(/)?$ index.php [L]