我有一个 .htaccess 文件,它在 Windows 7 上的 Apache 服务器上运行良好,但在 LightSpeed 服务器上出现 500 Internal Server Error。这是我的 .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