-1
關於代碼點火器和MySql:
如何通過htaccess從網址隱藏index.php?如何從網址隱藏index.php通過htaccess
關於代碼點火器和MySql:
如何通過htaccess從網址隱藏index.php?如何從網址隱藏index.php通過htaccess
在你的文檔根目錄,一個.htaccess
文件,其中包含以下內容:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt) # these are examples,
# add everything here that
# you **don't** want to be
# routed to CI
RewriteRule ^(.*)$ /index.php/$1 [L]
然後在application/config/config.php
變化:
$config['index_page'] = '';
它無關的MySQL。 – 2010-10-13 06:47:27
重複百次! – DRL 2010-10-13 14:52:30