【问题标题】:.htaccess URL Redirecting giving 500 Internal Server Error.htaccess URL 重定向给出 500 内部服务器错误
【发布时间】:2014-01-30 19:16:12
【问题描述】:

我有一个 .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

【问题讨论】:

  • 你的错误日志是怎么说的?
  • 我无权访问错误日志。我只能通过 FTP 访问我的目录。

标签: apache .htaccess lightspeed


【解决方案1】:

如果服务器没有设置AllowOverride Options=FollowSymlinksOptions +FollowSymlinks会导致500错误。

【讨论】:

  • 所以我应该删除这行Options +FOllowSymlinks ??
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-09-28
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多