由于很久没做其他事情,我又回来处理这个问题了。因此,请查看以下详细信息,使用这些详细信息,我仍然收到以下错误:
500 Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
我的网址:
localhost/exp/index.php
我的.htaccess:
RewriteEngine On
RewriteRule (.*?)/(.*?)/(.*?)$
exp/index.php?page=$1&action=$2&id=$3
现在,如果我注释掉除“RewriteEngine On”之外的所有内容
RewriteEngine On
#RewriteRule (.*?)/(.*?)/(.*?)$
#exp/index.php?page=$1&action=$2&id=$3
我的 /etc/apache2/httpd.conf 文件详细信息如下:
<Directory />
Options Indexes MultiViews FollowSymlinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<Directory "/Library/WebServer/Documents/">
Options Indexes MultiViews FollowSymlinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Mac Snow Leopard。我的目录位于 DocumentRoot“/Library/WebServer/Documents”内,我不使用正常的http://localhost/~用户/但http://本地主机/?? ETC
这可能也可能不是,但我注意到,如果我仅通过转到 localhost 列出我的目录,那么我正在使用的文件夹在其他文件夹列表中不可见???
所以我的生活不知道发生了什么。
答案1
尝试:
RewriteEngine On
RewriteRule ^(.*?)/(.*?)/(.*?)$ /exp/index.php?page=$1&action=$2&id=$3