I am stuck on a peculiar problem. My ajax (jquery COMET) not working in production server. It had workable. After 2/3 month my ajax showing 500 internal server error.
I have updated my CodeIgniter to 3.1.3 still nothing happened. But strange is sometime the ajax is works fine (probably after refresh) and most of the time it showing 500 internal error.
What I have tried so far
pconnectset toTRUEinconfig.php(not worked)dbriverchanged both inmysqliandpdonothing helped.htaccesstried in many ways. My current one isRewriteEngine On #redirect http to https #RewriteCond %{HTTPS} !=on #RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteCond %{HTTPS} off RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$ RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteCond $1 !^(index\.php|static|assets|avatars|uploads|robots\.txt) RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$ RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ RewriteRule ^(.*)$ index.php?/$1 [L] Header set Access-Control-Allow-Origin: http://xx.xxx.xxx.xx
Also tried this htaccess
https://gist.github.com/rejoan/38e59d34ba4f667b78c11b637c48c733
More info for helpers
There is
httpsin production serverLocally no such problem like this
when try
mysqlisometime it become very slow so now usingpdoas dbdriverI have huge ajax request on this project because it is a chat system
