Welcome Guest, Not a member yet? Register   Sign In
500 internal server error
#1

[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
#2

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

[eluser]learning_php[/eluser]
Hi,

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

[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
#5

[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?
#6

[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.




Theme © iAndrew 2016 - Forum software by © MyBB