mac php项目除了首页全飘not found
程序员文章站
2022-04-08 19:53:15
1.httpd.conf配置文件中加载了mod_rewrite.so模块2.AllowOverride None 将None改为 All ......
1.httpd.conf配置文件中加载了mod_rewrite.so模块
2.allowoverride none 将none改为 all
documentroot "/library/webserver/documents" <directory "/library/webserver/documents"> # # possible values for the options directive are "none", "all", # or any combination of: # indexes includes followsymlinks symlinksifownermatch execcgi multiviews # # note that "multiviews" must be named *explicitly* --- "options all" # doesn't give it to you. # # the options directive is both complicated and important. please see # http://httpd.apache.org/docs/2.4/mod/core.html#options # for more information. # options followsymlinks multiviews multiviewsmatch any # # allowoverride controls what directives may be placed in .htaccess files. # it can be "all", "none", or any combination of the keywords: # allowoverride fileinfo authconfig limit # #allowoverride none allowoverride all #这里这里!!! order deny,allow allow from all # # controls who can get stuff from this server. # require all granted </directory>