久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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)站

      thinkphp中隱藏入口文件的方法

      thinkphp中隱藏入口文件的方法

      初始url樣式:http://localhost/tp5/public/index.php/index

      1、將 index.php 和 .htacess 文件移出到和Public 文件平級目錄;

      2、修改 index.php

      namespace think;   // 加載基礎(chǔ)文件 require __DIR__ . '/thinkphp/base.php';   // 支持事先使用靜態(tài)方法設(shè)置Request對象和Config對象   // 執(zhí)行應(yīng)用并響應(yīng) Container::get('app')->run()->send();

      3、修改 .htaccess 文件

      <IfModule mod_rewrite.c>   Options +FollowSymlinks -Multiviews   RewriteEngine On     RewriteCond %{REQUEST_FILENAME} !-d   RewriteCond %{REQUEST_FILENAME} !-f   RewriteRule ^(.*)$ index.php?s=$1 [QSA,PT,L] </IfModule>

      最終url樣式:http://localhost/tp5/index

      推薦教程:《TP5》

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