【问题标题】:htaccess rewrite server errorhtaccess 重写服务器错误
【发布时间】:2012-08-05 20:10:40
【问题描述】:

大家好,在我的本地主机上使用 XAMPP 尝试 .htaccess,我已经检查了 phpinfo() 是否已加载 mod_rewrite,所以这不应该是问题..

这是我的 .htaccess

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l

RewriteRule ^(.+)$ index.php?url=$1 [QSA, L]

这是它在每一页上给出的错误

SERVER ERROR

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script. 

我的 htaccess 或 XAMPP 有什么问题? :)

【问题讨论】:

  • index.php 被执行了吗?传入的url 参数是什么?
  • 文件index.php真的存在吗?
  • 索引被传入,是的 index.php 确实存在:)

标签: .htaccess xampp


【解决方案1】:

$url 为空,请确保您回显!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-02-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多