Support the ongoing development of Laravel.io →
Configuration
Last updated 2 years ago.
0

Did you restart the server after enabling mod_rewrite?

Last updated 2 years ago.
0

AndrewBNZ said:

Did you restart the server after enabling mod_rewrite?

Yes :)

Last updated 2 years ago.
0

Anyone?

Last updated 2 years ago.
0

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

Last updated 2 years ago.
0

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

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.