LoginSignup
0
0

More than 5 years have passed since last update.

CodeIgniterでPOSTが取れなくなった

Posted at

CodeIgniterで突然POSTの値が取れなくなって困ったのでその解決メモ
print_r($_POST);でも空の配列しか入ってなくて困りましたが
結論としてはドキュメントルートのhtaccessから下記の記述が消えていたからでした
(正確にはhtaccessが消えていた)


RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|image|img|js|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

htaccessを再作成して解決

0
0
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
0
0