On every page besides /
I get a 404 page, and not laravel's 404 page?
I have enabled mod_rewrite
.
Here is my .htaccess:
<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>
and my /etc/apache2/siotes-enabled/000-default.conf
:
<VirtualHost *:80>
DocumentRoot "/var/www/html"
<Directory "/var/www/html">
AllowOverride All
</directory>
</VirtualHost
If I go to joshharington.com/index.php/about
it works, but if I just go to joshharington.com/about
it doesnt so I have gathered that it is a .htaccess problem.
I don't know much about .htaccess, but this works on my localhost. What am I doing wrong?