久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      yii框架如何配置路由

      yii框架如何配置路由

      首先要在服務(wù)器配置(httpd.conf)中開啟重寫模塊:

      #開啟重寫模塊,將其前面的#去掉 LoadModule rewrite_module modules/mod_rewrite.so #Directory中允許覆蓋開啟 <Directory "${SRVROOT}/htdocs">     #     # 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 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 All      #     # Controls who can get stuff from this server.     #     Require all granted </Directory>

      (推薦教程:yii框架)

      在目錄下加入服務(wù)器配置文件.htaccess

      RewriteEngine on  ############################### # @email test@test.com # @author test ###############################  #重寫規(guī)則 #如果是一個目錄或者文件,就訪問目錄或者文件 RewriteCond %{REQUEST_FILENAME} !-d  #如果文件存在,就直接訪問文件,不進行下面的RewriteRule RewriteCond %{REQUEST_FILENAME} !-f  RewriteRule . index.php

      在框架配置項frontendconfigmain.php中加入urlManager配置項

      'urlManager' => [     'enablePrettyUrl' => true,     'showScriptName' => false,         //'suffix' => '.html',//URL后綴],

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號