Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3421180
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T06:04:53+00:00 2026-05-18T06:04:53+00:00

So here is my situation: A client of mine has a site based on

  • 0

So here is my situation:

A client of mine has a site based on CodeIgniter hosted at some shared host on domainA.com. They wanted to move the site to a new domain and new host which i have done. I created a new database, and exported the old database and imported it into the new one and i changed the baseurl in the config.php file. The site itself loads up properly.

However, whenever i click on a link that is in the form: ‘domainB.com/site/someaction’, they all just render or redirect to the homepage. I know PHP, but have no experience with CodeIgniter. I have no idea who created the site initially to reach out to them for assistance, so i am hoping someone on SO can shed some light on what might be happening.

I can provide any other information that might be necessary to try and figure this out. Thanks.

update

.htaccess:

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

config.php:

<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

$config['base_url'] = "http://www.bidcleangrow.com/";    
$config['index_page'] = "";
$config['uri_protocol'] = "AUTO";
$config['url_suffix'] = "";
$config['language'] = "english";
$config['charset'] = "UTF-8";
$config['enable_hooks'] = FALSE;
$config['subclass_prefix'] = 'MY_';
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
$config['enable_query_strings'] = FALSE;
$config['controller_trigger']   = 'c';
$config['function_trigger']     = 'm';
$config['directory_trigger']    = 'd'; // experimental not currently in use
$config['log_threshold'] = 3;
$config['log_path'] = '';
$config['log_date_format'] = 'Y-m-d H:i:s';
$config['cache_path'] = '';
$config['encryption_key'] = "";
$config['sess_cookie_name']     = 'ci_session';
$config['sess_expiration']      = 7200;
$config['sess_encrypt_cookie']  = FALSE;
$config['sess_use_database']    = FALSE;
$config['sess_table_name']      = 'ci_sessions';
$config['sess_match_ip']        = FALSE;
$config['sess_match_useragent'] = TRUE;
$config['sess_time_to_update']  = 300;
$config['cookie_prefix']    = "";
$config['cookie_domain']    = "";
$config['cookie_path']      = "/";
$config['global_xss_filtering'] = TRUE;
$config['compress_output'] = FALSE;
$config['time_reference'] = 'local';
$config['rewrite_short_tags'] = FALSE;
$config['proxy_ips'] = '';


/* End of file config.php */
/* Location: ./system/application/config/config.php *
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T06:04:54+00:00Added an answer on May 18, 2026 at 6:04 am

    Does the new domain have the subdomain “system” setup?

    RewriteCond %{REQUEST_URI} ^system.*
    

    UPDATE

    After a fair bit of debugging the problem was found to be some odd CGI setup with Apache on the server that was not setting any of the variables that CodeIgniter checks in the way it wished.

    Modifying the URI class method _fetch_uri_string() (system/libraries/URI.php:92;v1.7.2) to look at $_SERVER['ORIG_PATH_INFO'] directly when present rather than any other variable solved the issue. $_SERVER['SCRIPT_NAME'] mirrors this variable rather than being a sub-part of it as CodeIgniter expects.

    UPDATE 2

    There is an easier solution that I just discovered.

    Changing $config['uri_protocol'] in system/application/config/config.php to ORIG_PATH_INFO has the same effect. Yes, I should have RTFM’d, but I never use CodeIgniter.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is the situation. There are server and client in network. They communicate like
Here is my situation: XMLRPC::Client has a proxy constructor, new3 , that takes a
Here is the situation: Some pages on my site use different js files than
Here is the situation, we have a site that is hosted and updated by
I have a problem with a specific java client library. Here is the situation:
Here's my situation: I'm writing a chat client to connect to a chat server.
Here is the situation. I would like to develop a game based on content
Here is the situation. I need to hit ~50 servers and grab some data
Here is the situation.... I have a iframe, which is located to my client
Here's the situation: I have a client who's issued me an XML schema, and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.