my facebook application coded in CodeIgniter, located on hostgator, was working fine before i switched to secure URL. A few words about application.

Site URL:

canvas URL:

canvas Secure URL:

CodeIgniter Config file: $config['base_url'] = ''

Now after i use application it loads fine however when i attempt to fetch somedata using ajax on application page i recieve a URL not found error. Ajax will publish data to following URL.

where canvas is controller and match is method.

Can someone let me know so why do i recieve a 404-page not found error on ajax call?

Searching at the ajax url, it appears as if you are utilizing pretty web addresses? Have a look inside your .htaccess apply for any problem rewrites.

The primary application works fine because it will just call the default document (index.php).

A good way to check this is to try and access

Best of luck :)


Lengthy shot, but attempting to imagine what your .htaccess rewrite rule appears like, if it's something similar to:

RewriteRule ^(.*)$ index.php/$1 [L,QSA]

Try altering it to:

RewriteRule ^(.*)$ /~cpanelUser/$1 [L,QSA]