sqlmole
sqlmole

Reputation: 997

My Codeigniter site works on localhost but not on web server? 500 internal server

I have tested my website on my localhost and it is working fine and all the views/controllers and models are tested.

So I thought I would put it on my webserver and test it there, the website displays however when doing functions like

For example registering or loging into the website does not work:

I checked in firebug it is saying

500 Internal server error

Here is my site, please could you have a browse through the pages , even try registering if you like.

Another thing I noticed on the failed pages is that my favicon is changing to the root domains favicon.

Here is my actual website, its in a sub domain.

Could it be my htacces

Here is the code in it:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]  

I dont understand why It works on my localhost but not on a dedicated server.

They were both Apache windows servers.

Thanks, for your time.

Upvotes: 0

Views: 2761

Answers (2)

swordfish
swordfish

Reputation: 4995

I think the problem is with your routes. All your pages are with in the domain

http://www.iiios.eu/midas/site/register

But on registering or login it goes to

http://www.iiios.eu/midas/register

without the site in the middle and CI doesnt know how to transfer control to the route. You might wanna check your forms open and action atr for register and login form.

Update

This is your form tag. Check whether you have the method create_member on register class which is in midas directory. My guess is that you have accidentally missed the site there.

I think it should have been

"http://www.iiios.eu/midas/site/register/create_member"

Upvotes: 1

Abbas
Abbas

Reputation: 14432

This might be a problem with the routing, see if the referencing to the routes, like when registering, are correct or if you defined routes in the config.php. Is the base_url() defined correctly? Also on the homepage in the sidebar you reference a non-object property.

Upvotes: 0

Related Questions