• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
500 internal server error


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?


Have you tried all the URI protocols in the config file? That seems to fix a lot of problems


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

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


I had a search and i think it is something to do with my .htaccess file so i changed it to this:
<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 !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

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?

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.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.