- index.phpと同じフォルダに.htaccessつくる
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
- mod_rewrite を有効にする
普通最初から有効なので割愛
- AllowOverride All
httpd.confを適当に検索して有効にしたいディレクトリに対しておこなうよ!