CodeIgniter Forums
local works but on live server (godaddy) doesn't work - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9)
+--- Thread: local works but on live server (godaddy) doesn't work (/showthread.php?tid=64511)



local works but on live server (godaddy) doesn't work - goneewindy - 02-27-2016

I saved the htaccess.txt and put it under my public_html on FileZilla and then changed it to .htaccess. 

When I do that, I get a this error: 

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

The .htaccess works on my local host but why is going on ? 
I changed the permission from 604 to 705 and still didn't work. 


RE: local works but on live server (godaddy) doesn't work - InsiteFX - 02-27-2016

(02-27-2016, 12:47 PM)goneewindy Wrote: I saved the htaccess.txt and put it under my public_html on FileZilla and then changed it to .htaccess. 

When I do that, I get a this error: 

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

The .htaccess works on my local host but why is going on ? 
I changed the permission from 604 to 705 and still didn't work. 

Google is your Friend..

.htaccess GoDaddy


RE: local works but on live server (godaddy) doesn't work - siburny - 02-29-2016

What if you delete .htaccess file do you get an index page? There might be some kind of PHP error unrelated to Apache config.


RE: local works but on live server (godaddy) doesn't work - kilishan - 02-29-2016

Whenever you get a 500 error, the best thing to do to save everyone time, is to check your server's error logs. CPanel and Plesk both have ways to do this from the control panel, IIRC. The error should show up.

Additionally, you can make sure that errors are turned on (see the main index.php page) to show you all of the errors that it can.


RE: local works but on live server (godaddy) doesn't work - krishnamhnsingh - 05-28-2020

(02-29-2016, 08:03 PM)siburny Wrote: What if you delete .htaccess file do you get an index page? There might be some kind of PHP error unrelated to Apache config.

I got same error but when i removed .htaccess file it worked fine...

if i want to use .htaccess file what should i do now..


RE: local works but on live server (godaddy) doesn't work - InsiteFX - 05-29-2020

Like Lonnie said, check your server logs to see what the error is.