让Apache支持url_rewrite伪静态的方法
修改Apache的配置文件httpd.conf,去掉#LoadModule rewrite_module modules/mod_rewrite.so 这句的前面的”#”号,找到AllowOverride设置为All,然后再重新启动Apache就可以了。
有好几个找到和下面代码类似的那个
< /IfModule >
#
# “D:\usr\local\Apache2\cgi-bin” should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
< Directory "D:\usr\local\Apache2\cgi-bin" >
AllowOverride All
Options None
Order allow,deny
Allow from all
< /Directory >
本文Dao Blog - 道博客版权所有,可转载,但需注明出处:http://www.daoblog.com/apache-url_rewrite.html
下篇文章: 今天才知道Discuz有个repair.php文件的
上篇文章: 如何把淘宝旺旺的“旺遍天下”代码插入到网页中
"如何让Apache支持伪静态?" was posted on Tuesday, June 24th, 2008 at 10:36 pm.
发表评论

