localhost で動作する元のコード:
var form_data = {
'email':$('#inviteEmail').val(),
};
$.ajax({
url: "<?php echo site_url('invites/save_email') ?>",
type: 'POST',
data: form_data,
success: function(msg) {
window.location.href = "<?php echo site_url('invites/moreinvites')?>"
return true;
}
});
localhost では問題なく動作し、CSRF はオフになっています。しかし、それを Media Temple Hosting に移動すると、500 Internal server error
.
サーバー エラー ログ
構成エラーの可能性があるため、要求が 10 個の内部リダイレクトの制限を超えました。必要に応じて、'LimitInternalRecursion' を使用して制限を増やします。「LogLevel debug」を使用してバックトレースを取得します。
私のhtaccessファイルにはこれがあります
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /thesavv/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
# If we don't have mod_rewrite installed, all 404's
# can be sent to index.php, and everything works as normal.
# Submitted by: ElliotHaughin
ErrorDocument 404 /index.php
</IfModule>
このエラーについてはわかりません。