Did you restart the server after enabling mod_rewrite?
AndrewBNZ said:
Did you restart the server after enabling mod_rewrite?
Yes :)
Without having full knowledge of your configuration...
My Apache (Ubuntu based) config has the following
.htaccess Options +FollowSymLinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L]
mysite.conf file (for Apache) <VirtualHost *:80> ServerAdmin webmaster@localhost ServerName mysite.dev DocumentRoot /var/www/laravel/mysite/public <Directory "/var/www/laravel/mysite/public"> Options FollowSymLinks AllowOverride All Order allow,deny allow from all </Directory> </VirtualHost>
These settings are above and beyond that which you stated you have already verified being the mod_rewrite option.
Hopefully these notes will help you. I use the above for several domains on my local and production servers for virtual hosting.
Steven
Found the answer babies;
public directory is supposed to have a .htaccess file which my app was missing!
So I did this in terminal:
bash-3.2# touch .htaccess
bash-3.2# vim .htaccess
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
Thanks
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community