我有一个.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
如果服务器未设置AllowOverride Options=FollowSymlinks
,Options +FollowSymlinks
将导致 500 错误。