config檔底下:

config['index_page'] = '';

 

 

.htaccess檔內:

<IfModule mod_rewrite.c>
<Files ".(htaccesshtpasswd)">
    deny from all
</Files>

    Options -Indexes
    Options +FollowSymLinks

#允許解析文件中的SSI指令
    Options +Includes

#定義404,500錯誤頁面
    ErrorDocument 404 /404.htm
    ErrorDocument 500 /404.htm

#定義目錄索引頁面
    DirectoryIndex index.php
    order deny,allow
    RewriteEngine on

#設置根目錄
    #RewriteBase /你的ci目錄/

#去掉鏈接地址中index.php字符串
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond 1 !(index\.phpcssflashimagesimgincludesjspubliclanguagerobots\.txt)
    RewriteRule (.*) index.php/1 [L]

</IfModule>

 

官方設定文件

文章標籤
全站熱搜
創作者介紹
創作者 incode 的頭像
incode

程式筆記本

incode 發表在 痞客邦 留言(0) 人氣(60)