.htaccessRewriteEngine on
RewriteCond $1 !^(index\.php|css|woff|eot|ttf|svg|css|js|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
.htaccessの置き場所はCodeIgniterをインストールしたルートのフォルダ。
- この記事で書かれている製品やソフトについて
- CodeIgniter 3.1.2
- Bootstrap 3.3.7