I have a Laravel install that is using the standard .htaccess
file, which works great for dev.mysite.com
but on my dev server I have foo.dev.mysite.com
and another route which is bar.dev.mysite.com
The routing is working fine, but the requests are not being rewritten to index.php, for example when I go to foo.dev.mysite.com/example
I get a 404 but when I go to foo.dev.mysite.com/index.php?example
it's working fine.
I have the following .htaccess
file:
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>