CodeIgniter – Open source PHP web application framework
設定 .htaccess 讓 網址比較短
codeigniter 網頁提到
http://codeigniter.com/user_guide/general/urls.html
可以把www.your-site.com/index.php/news/article/my_article
變成
www.your-site.com/news/article/my_article
步驟:
改 apache 的 virtual host file
Options FollowSymLinks
在 /xxx/username/ci/ 下建 .htaccess
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond $1 !^(index.php|images|robots.txt)
RewriteRule ^(.*)$ /rimmon/ci/index.php/$1 [L]
</IfModule>