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>
文章標籤
全站熱搜
