我有一个.htaccess文件在Windows 7上的Apache服务器上正常工作,但在LightSpeed服务器上提供500内部服务器错误。这是我的.htaccess文件:
<Files ~ "^\.(htaccess|htpasswd)$">
deny from all
</Files>
AuthUserFile **********************
AuthGroupFile /dev/nullAuthName "Please enter your ID and password"
AuthType Basic
require valid-user
order deny,allow
Options +FollowSymLinks
RewriteEngine on
RewriteBase /someFolder
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
RewriteRule /R/(.*)/ index.php?R=$1
答案 0 :(得分:0)
Options +FollowSymlinks
, AllowOverride Options=FollowSymlinks
将导致500错误。