简体   繁体   English

.htaccess URL重定向给500 Internal Server Error

[英].htaccess URL Redirecting giving 500 Internal Server Error

I have a .htaccess file that is working fine on Apache server on Windows 7, but giving 500 Internal Server Error on LightSpeed Server. 我有一个.htaccess文件,该文件在Windows 7上的Apache服务器上运行正常,但在LightSpeed Server上给出了500 Internal Server Error。 This is my .htaccess file: 这是我的.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=FollowSymlinksOptions +FollowSymlinks将导致500错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM