问题
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?
回答1:
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>
来源:https://stackoverflow.com/questions/9701610/htaccess-internet-server-error-500-on-xampp