Configuration issue? Ubuntu/Apache2 14.04 Simple route will not return correctly.

Published on Author Code Father

Changing theĀ Apache config file to the below resolved the issue.

<VirtualHost *:80>
ServerName somehost
DocumentRoot /var/www/html/public

CustomLog /var/www/html/access.log common
ErrorLog /var/www/html/error.log

<Directory /var/www/html/public>
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
</Directory>
</VirtualHost>

Comments

comments