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

时间:2019-03-25
本文章向大家介绍mac php项目除了首页全飘not found,主要包括mac php项目除了首页全飘not found使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。

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>