我将 .htaccess 上传到服务器并收到错误 500(内部服务器错误).
在错误日志中我有以下错误:
.../.htaccess:此处不允许 RewriteEngine
But mod_rewrite.so
已启用。
那么我需要改变吗
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
to
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
in the /etc/httpd/conf/httpd.conf file?
或者可能是其他什么? .htaccess 文件应该没问题,因为它在我的本地主机上工作得很好。我只是不想搞砸任何事情。
这是我的 .htaccess 文件的一部分:
Options All -Indexes
Options +FollowSymLinks
RewriteEngine On
.htaccess 工作的最低配置:
AllowOverride FileInfo Options
允许所有配置也将起作用:
AllowOverride All
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)