component loads in localhost but gives internal server error on live : joomla -
i have simple component 1 php file returns data database. file called using js ajax homepage, , works when hosted locally.
but on deploying live server, ajax call returns : "failed load resource.internal server error occurred 500".
i have tried giving permissions , re configuring htaccess.txt file..but vein..
example: localhost:1000/index.php?option=com_comp&option=raw --- works web.azurewebsites.net/index.php?option=com_comp&option=raw --- dosent work
try calling ajax php file directly on live website , see kind of error returns, , whether works or not.
i think real problem ajax's url wrong , referencing local server instead of remote server.
ps: make sure prepend http:// (or https://, if you're using https) ajax url in code.
Comments
Post a Comment