一边找寻 一边奋进 做最好的自己--超越自己的高度……

本地apache2启用url_rewrite

feather 在本地调试wordpress,更换永久连接为/archives/%postname%.html 结构。

启用了Permalink Redirect插件。依然不能重新定向。还需要apache支持url_rewrite。修改一下apache的httpd.conf设置,就可以让apache支持.htaccess了,前提是你的apache先要支持.htaccess 。

修改apache的设置文件 httpd.conf,去掉下面这句的前面的”#”

#LoadModule rewrite_module modules/mod_rewrite.so

改为

LoadModule rewrite_module modules/mod_rewrite.so

搜索 <Directory />

AllowOverride None  改为 AllowOverride All

重新启动apache,终于搞定!

在修改httpd.conf之前,建议关闭apache,防止缓存覆盖设置,使修改失效。


You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

AddThis Social Bookmark Button
Tags: ,

Related Posts

  • None
  • One Response to “本地apache2启用url_rewrite”

    Leave a Reply