thinkphp3.2,APACHE服务器为什么无法设置URL模式

2025-05-14 10:19:20
推荐回答(3个)
回答(1):

    #    # 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.2/mod/core.html#options
    # for more information.
    #    Options Indexes FollowSymLinks    #    # 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 None    #    # Controls who can get stuff from this server.
    #    Order allow,deny
    Allow from all


AllowOverride None 换成 AllowOverride All 使apache支持 .htaccess 文件

url模式2和3有伪静态部分 ,如果你要开启伪静态和url重写 需要改掉,记得重重启apache,

回答(2):

'SESSION_AUTO_START'=>true,//是否开启session'APP_DEBUG'=>true,'URL_MODEL'=>2,'APP_GROUP_LIST'=>'Admin,Home',//项目分组设定'DEFAULT_GROUP'=>'Home',//默认分组这是代码,详细的后盾人好像有哦,有高清教学视频,

回答(3):

这个跟服务器没关系,在你的程序中找问题!