jquery - 500 Internal Server Error on ajax call with cakephp -
i developed small website cakephp working locally, , moved in production environment on tophost. after have fighting .htaccess config file, got homepage work. when click on buttons should open detail page, 500 error on $.ajax call. ideas?
this .htaccess in htdocs folder:
<ifmodule mod_rewrite.c> rewriteengine on rewriterule ^$ /cakephp/app/webroot/ [l] rewriterule (.*) /cakephp/app/webroot/$1 [l] </ifmodule>
and following ajax call:
$.ajax({ type: "post", url: "/track", data: id, datatype: "text" }).done(function(data) { ... }
Comments
Post a Comment