提问者:小点点

.htaccess 500内部服务器错误


每当我申请时。htaccess文件位于my WAMP serverswww文件夹中,它显示:

内部服务器错误服务器遇到内部错误或配置错误,无法完成您的请求。请与服务器管理员联系,webmaster@httphttp://www.domain。com,并通知他们错误发生的时间,以及您可能采取的任何可能导致错误的措施。有关此错误的详细信息,请参阅服务器错误日志

我的htaccess文件是:

Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteRule ^finduser/(.*)/(.*)/$ finduser/finduserResult.php?City=$1&txtAreaRzip=$2 [L,NC]

hhtpd.conf文件:我已经启用了LoadMoulesrewrite_module模块/mod_rewrite.so.


共3个答案

匿名用户

确保您的wamp重写模式已打开。。

在阿帕奇

匿名用户

您需要设置以下设置:在htaccess中

php_flag display_errors on

在php脚本中需要添加

error_reporting(-1);
ini_set('display_errors', 1);

您将收到错误消息

匿名用户

尝试执行此功能

RewriteEngine On 
Options All -Indexes
RewriteBase /directoryname/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

其他然后尝试做设置sh4040插件