在Snow Leopard上设置Mod_rewrite问题

可能重复:
一切你想知道Mod_Rewrite规则,但不敢问?

我已经回到了这个年龄段的其他事情旁边。 所以请在下面find我的细节,这些细节我仍然得到以下错误:

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. 

我的url:

  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雪豹。 我的目录是在DocumentRoot“/ Library / WebServer / Documents”中,我不使用正常的http:// localhost /〜User /而是http:// localhost / ?? 等等

这可能会或可能不会,但只是注意到,如果我列出我的目录只是去本地然后我使用的文件夹是不可见的? 在其他文件夹的列表中

所以我的生活不知道发生了什么事情。

尝试:

  RewriteEngine On RewriteRule ^(.*?)/(.*?)/(.*?)$ /exp/index.php?page=$1&action=$2&id=$3