隱藏網址上的index.php

把以下程式加到.htaccess裡面(在application裡面可以找到此檔案)

RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule^(.*)$ /index.php/$1 [L]

 

若還要變化不同網址

可以利用application\config裡面的routes.php

去做網址的參數不同的排列組合變化。

 

 

arrow
arrow
    全站熱搜

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