index.phpを除去する
.htaccessを作成しドキュメントルートに置き、下記を記述
RewriteEngine on RewriteCond $1 !^(index\.php|css|images|user_guide_ja|robots\.txt) RewriteRule ^(.*)$ /index.php/$1 [L]
2行目は除外するもんを追加
encryption keyを設定
application/config/config.php
内
$config['encryption_key'] = 'ここに32文字の任意の文字列';
index_pageをなしにする
同じく application/config/config.php内
$config['index_page'] = '';
デフォルトのコントローラーを設定
config/route.php
内 welcome
を任意のコントローラー名に変更
$route['default_controller'] = "welcome";
ヘルパーの自動ロード設定
application/config/autoload.php
内
helperに urlを追加しとくと便利。
$autoload['helper'] = array('url');