[英]Website giving me 500 internal server error - is it .htaccess error?
[英].htaccess URL Redirecting giving 500 Internal Server Error
我有一個.htaccess文件,該文件在Windows 7上的Apache服務器上運行正常,但在LightSpeed Server上給出了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
如果服務器尚未設置AllowOverride Options=FollowSymlinks
則Options +FollowSymlinks
將導致500錯誤。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.