Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

htaccess - internet server error 500 on XAMPP [closed]

I am trying to run script on XAMPP but get "internet server error 500". Its fine when running on the live server. I assume this is a .htaccess error. The htaccess code is below:

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule    ^$    public/    [L]
    RewriteRule    (.*) public/$1    [L]
 </IfModule>

I have enabled htaccess by uncommenting the line:

LoadModule rewrite_module modules/mod_rewrite.so

in the config file.

Any ideas?

like image 479
LeeTee Avatar asked Jan 20 '26 22:01

LeeTee


1 Answers

Try editing this part in your httpd.conf and set AllowOverride All

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
AllowOverride All

Or try this:

<Directory />
     AllowOverride All
</Directory>
like image 85
Fabian Avatar answered Jan 23 '26 17:01

Fabian



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!