apache開啓.htaccess支持

打開apache的配置文件httpd.conf
1.把#LoadModule rewrite_module modules/mod_rewrite.so前面的#去掉。
2.找到
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
把 AllowOverride None 改爲 AllowOverride All
最後就是重啓一下apache服務器使配置生效,這樣就支持.htaccess文件了,終於我自己電腦上用於測試的WordPress也用上固定鏈接了。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章