razznitin
razznitin

Reputation: 79

Internal pages not found (404) after moving to new host - CodeIgniter

I have recently moved one website to new server. I have transferred everything properly including mysql database. But now the internal pages are not opening (sending 404 error). Homepage looks fine.

One thing to consider here is that, the website was on shared cpanel with another domain and residing in a folder. Now after moving, it is placed directly in public_html. I hope, this doesn't create any issue.

The website is: http://nepaltrekking.co.kr/

regards,

Upvotes: 1

Views: 2783

Answers (2)

razznitin
razznitin

Reputation: 79

Actually I resolved it. The issue was with .htaccess. I changed the permission to 666 and it started working. I think there was problem writing in the .htaccess file.

Upvotes: 1

Virendra Jadeja
Virendra Jadeja

Reputation: 863

When hosting changes, we need to take care of the following steps for codeigniter:

  1. Check required php and apache modules are installed and enabled.
  2. If installation is not in root directory, you must change htaccess.
  3. If domain is changed, you need to edit config file for new base_url.
  4. Clear application cache if enabled. Give required write permision in cache directory.
  5. If nothing works, then see error log and correct error accordingly.

Upvotes: 1

Related Questions