LoginSignup
3
3

More than 5 years have passed since last update.

CodeigniterでのNo input file specifiedの対処法

Last updated at Posted at 2014-11-28

参考URL:http://p-note.info/?p=342

1.config.phpを設定する

application/config/config.phpを以下のように設定する。

$config['index_page'] = "";

$config['uri_protocol'] = "AUTO";

2.htaccessを設定する

CodeIgniterのフォルダの直下に以下の内容の.htaccessを置く

RewriteEngine On
RewriteCond %{REQUEST_URI} ^/system.*
RewriteRule ^(.*)$ index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?/$1 [L]

最終行の「RewriteRule ^(.+)$ index.php?/$1 [L]」はドメイン直下にCodeIgniterがある場合。
ディレクトリ構成に合わせて要変更。

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3