my facebook app developed in CodeIgniter, hosted on hostgator, was working fine before i switched to secure URL. Here is some information about app.
Site URL: http://sitename.com/
canvas URL: http://sitename.com/fbapp/
canvas Secure URL: https://secure10977.hostgator.com/~cpanelUser/sitename.com/fbapp/
CodeIgniter Config file:
$config[‘base_url’] = ‘https://secure10977.hostgator.com/~cpanelUser/sitename.com/fbapp/’;
Now when i use application it loads fine but when i try to fetch somedata using ajax on app page i get a URL not found error. Ajax will post data to following URL.
https://secure10977.hostgator.com/~cpanelUser/sitename.com/fbapp/canvas/match
where canvas is controller and match is method.
Can someone tell me why do i get a 404-page not found error on ajax call?
Looking at your ajax url, it looks like you are using pretty urls? Take a look in your .htaccess file for any offending rewrites.
The main application will work fine as it will just call the default document (index.php).
An easy way to test this would be to try to access
Good luck 🙂
UPDATE:
Long shot, but trying to imagine what your .htaccess rewrite rule looks like, if it is something like:
Try changing it to: