也许我还是没有弄懂,但现在我需要抗议!
对于.htaccess的生效
官方意见:
Merging of .htaccess with the main configuration files
As discussed in the documentation on Configuration Sections, .htaccess files can override thesections for the corresponding directory, but will be overriden by other types of configuration sections from the main configuration files. This fact can be used to enforce certain configurations, even in the presence of a liberal AllowOverride setting. For example, to prevent script execution while allowing anything else to be set in .htaccess you can use:
Allowoverride All
我全部都改了 Allowoverride All 依然无效 ! 觉得有点浪费时间!还不如直接include得了,比较干脆!