在本地主機啓用的Apache服務器的.htaccess
1) Find your apache directly which uses the php installation .
2) Open your httpd.conf with notepad, Which is located in the path \apache\conf directory
3) Find the code like below
#LoadModule rewrite_module modules/mod_rewrite.so
4) Remove # from above code
# 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 All <--- make sure this is not set to "None"
5) Save httpd.conf file
6) Restart your apache server
我以爲'.htaccess'配置不應該使用,如果你有權訪問服務器配置文件,在這種情況下,你這樣做。 – SeinopSys
是的,我也聽到了一些關於它的信息,我只是覺得配置文件有點混亂。我還可以在'.htaccess'文件中找到更多的教程。 – KFox