I am working on a PHP laravel project. I am currently facing issues with .htaccess file. I have following .htaccess:<IfModule mod_rewrite.c>Options -MultiViewsRewriteEngine OnRewriteBase /RewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^ index.php [L]</IfModule>When I reload my page the it gave me following error:404 Not FoundThe requested URL /contacts was not found on this server.Then I opened /etc/apache2/users/username.conf file which had following line of code:<Directory /Users/username/Sites/>Options Indexes MultiViewsAllowOverride NoneOrder allow,denyAllow from all</Directory>In above code I changed AllowOverride None to AllowOverride All. Then I reload page and got following error:403 ForbiddenYou don't have permission to access /contacts on this server.When I add FollowSymLinks to .htaccess file Options such as like this Options -MultiViews FollowSymLinks. Then sometimes I get this 500 Internal Server Error error and sometime this *Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data*. Each time I reload my page one of these errors with FollowSymLinks option.I also uncomment following lines in /etc/apache2/httpd.conf:LoadModule rewrite_module libexec/apache2/mod_rewrite.soLoadModule php5_module libexec/apache2/libphp5.soand still I am getting same permission denied error.Please help me I am trying to solve this problem for past 3 days but it is till unresolved.
Clean URLs issue using .htaccess in PHP project
apache;htaccess;webserver;http code 500;configuration