欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

mac php项目除了首页全飘not found

程序员文章站 2022-07-11 09:31:09
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>