CodeIgniter Forums
500 internal server error - 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: 500 internal server error (/showthread.php?tid=18391)



500 internal server error - El Forum - 05-05-2009

[eluser]learning_php[/eluser]
Hi,

I have just launched my first site with codeigniter and the homepage appears correctly when I go to the url. But if I try and access another page I get a 500 internal error? also i know its not a codeigniter error but the css does not work in IE and i am not sure?

Thanks


500 internal server error - El Forum - 05-05-2009

[eluser]Dam1an[/eluser]
Have you tried all the URI protocols in the config file? That seems to fix a lot of problems


500 internal server error - El Forum - 05-05-2009

[eluser]learning_php[/eluser]
Hi,

I have jsut gone through the list and i get the same error on all of them?


500 internal server error - El Forum - 05-05-2009

[eluser]Dam1an[/eluser]
try putting a clean install of CI (just the default application folder) and see if that gives you the error still (you would need to add a basic extra page)... This should narrow down if the problem is with CI and your server, or with your application


500 internal server error - El Forum - 05-05-2009

[eluser]learning_php[/eluser]
Hi,

I had a search and i think it is something to do with my .htaccess file so i changed it to this:
Code:
<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteBase /www.wesayido.co.uk/
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$/index.php/$1 [QSA,NC,L]
</IfModule>

<IfModule !mod_rewrite.c>
  # If we don’t have mod_rewrite installed, all 404’s
  # can be sent to index.php, and everything works as normal.

  ErrorDocument 404 /index.php
</IfModule>

I no longer get the internal server error but get a

Not Found

The requested URL /info was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Is something wrong with my .htaccess file?


500 internal server error - El Forum - 05-05-2009

[eluser]TheFuzzy0ne[/eluser]
Please try removing the RewriteBase and adding a space between "^(.*)$" and "/index.php/$1". You find you also need to remove the leading forward slash before index.php.