主要修改apache安裝檔案夾conf下的httpd.conf檔案
1.将“#LoadModule rewrite_module modules/mod_rewrite.so”前面的#号去掉
2.将“
Options Indexes FollowSymLinks
…
AllowOverride None
”改為“
Options Indexes FollowSymLinks
…
AllowOverride All
”
3.将“Options Indexes FollowSymLinks … AllowOverride All”所在的“Directory”目錄改為你的網頁根目錄,例如我的是“G:/php/www”,那“Directory”就改為“< Directory “G:/php/www”>”
4.重新啟動apache伺服器,大功告成!