w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Cant see or access Laravel's public folder

After I looked at /var/log/httpd/error_log I saw the following in the last line:

[Tue May 20 09:37:21.874443 2014] [core:alert] [pid 2897] [client ::1:55498]
Options not allowed here, referer: http://localhost/~username/test/

So in my public folder I renamed the .htaccess file to .htaccess2 and now it works. Of course now I need to write index.php after public/ in the URL but at least it works. This also solved the invisible folder error, so if I go to the project root (the parent folder of public) in the browser it lists the public folder too.

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.