Your site works locally, but when you try to view it online you get the following error;
500 Internal Server Error check server logs for error page.
Your web page has a scripting error and the web server is showing you a custom error document. Custom Error documents protect your website from hackers by hiding any code errors from public view.
Disable custom error documents in your Hosting Control Panel. Once you have fixed the bug, we strongly recommend that you re-enable custom errors.