apache開啟偽靜態(url重寫)
作者:佚名 時間:2012-11-07 分享到:
如果需要開啟偽靜態支持:
打開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文件了
如沒特殊注明,文章均為上海聯楷網絡原創,轉載請注明來自:http://www.ktcbnqb.cn/contact/20151229/n7396.html