国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

apache配置rewrite隱藏掉thinkphp的index.php
迷茫
迷茫 2017-05-24 11:33:27
0
3
957

apache配置rewrite隱藏掉thinkphp的index.php?
我開啟了rewrite模塊

Listen 8888

<Directory />
    AllowOverride all
    Require all denied
</Directory>

<Directory "E:/wamp64/www/">
    #
    # 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 All

    #
    # 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 all

    #
    # Controls who can get stuff from this server.
    #

#   onlineoffline tag - don't remove
    Require local
</Directory>

<VirtualHost *:8888>  
    #配置訪問跟目錄  
    DocumentRoot "e:/wamp64/www/golorryService"  
    ServerName http://127.0.0.1:8888
</VirtualHost>

哪里有問題?

迷茫
迷茫

業(yè)精于勤,荒于嬉;行成于思,毀于隨。

全部回復(fù)(3)
給我你的懷抱

http://doc.thinkphp.cn/mobile...

Ty80

謝邀!

隱藏index.php,應(yīng)該在你的e:/wamp64/www/golorryService下配置 .htaccess文件

    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php/ [QSA,PT,L]
    

并且你要確認(rèn)你的apache的httpd.conf(apache/conf目錄下)是否加載 mod_rewrite.so模塊

    LoadModule rewrite_module modules/mod_rewrite.so

    
phpcn_u1582

這篇文章可以參考參考 Apache的部分配置

最新下載
更多>
網(wǎng)站特效
網(wǎng)站源碼
網(wǎng)站素材
前端模板