开启mod_rewrite的错误

开启mod_rewrite的错误

现在要使apache支持.htaccess文件,把httpd.conf文件的#LoadModule rewrite_module modules/mod_rewrite.so前的#号去掉。看书上说还要把AllowOverride None 改成AllowOverride All才能支持.htaccess。于是把httpd.conf中的该站点目录配置文件改成:
    <Directory "e:/hekey/www">
    AllowOverride All
    Options None
    Order allow,deny
    Allow from all
</Directory>
后在访问出现没有权限访问。是什么原因呢?
请问你的.htaccess文件中的指令是什么?
RewriteEngine on
RewriteRule k([0-9]+).do$ newsdisplay.php?id=$1
apache到底要怎么配置啊。我这个样子配置那里不对呢。下了个bo-blog。它的url优化也是rewrite。证明.htaccess没有写错啊。到底怎麽配置呢??
<Directory "e:/hekey/www">
    AllowOverride AuthConfig
    Options None
    Order allow,deny
    Allow from all
</Directory>
版主大人,改成你的后提示:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, hekeyphp@gmail.com 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.
把AllowOverride后面修改成Limit试试,如果还出现500内部错误,看下error_log中有什么报错。
对应的找apache手册,查找Options的参数。