CodeIgniter Forums
problem: 500 internal server error at the site - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: problem: 500 internal server error at the site (/showthread.php?tid=48584)



problem: 500 internal server error at the site - El Forum - 01-21-2012

[eluser]Unknown[/eluser]
Hello,
I've created a website at localhost and It works fine at it.
but when I uploaded it to real site, this message appeared:
Quote:Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the 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.

by the way, I removed index.php from the links.
and when I delete .htaccess and rewrite 'index.php' in config file, the site works good.
any solv??


problem: 500 internal server error at the site - El Forum - 01-22-2012

[eluser]Aken[/eluser]
Sounds like a problem with your .htaccess. Please post its contents using the [ code ] tags.


problem: 500 internal server error at the site - El Forum - 01-22-2012

[eluser]Unknown[/eluser]
Thank you for your reply,
this is .htaccess
Code:
Options +FollowSymLinks
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

AddDefaultCharset UTF-8



problem: 500 internal server error at the site - El Forum - 01-23-2012

[eluser]Aken[/eluser]
First, remove the first RewriteCond line. The next two are sufficient.

Second, try removing the "Options +FollowSymLinks" and "AddDefaultCharset UTF-8" lines (or comment them out by putting # at the start of the line) and see if those changes fix your problem. If they do, one of those lines if probably causing the error. If not, then its possible you don't have mod_rewrite or other components necessary.