php - localhost web moved to godaddy server

282

I have problem with my developed website locally, After completion of my development i moved my folder from WWW to godaddy server with subdomain,

My application is developed in codeigniter framework,

I changed my base_url and database configuration, but when i load my login controller, it throw 404, page not found error,

$config['base_url'] = 'http://subdomain.domain.com/';

i am opening my webpage as

http://subdomain.domain.com/index.php/login

what went wrong? what are steps to take while moving from localhost to webserver?

Thanks,

543

Answer

Solution:

You must give the default controller in routes.php file

It located at here

./root/application/config/routes.php

In this file just change the line

$route['default_controller'] = "welcome";  
// give default controller name instead of welcome

Good Luck ['}

People are also looking for solutions to the problem: java - How do we add values in a Dependency Injection controller?

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.