CodeIgniter 3 Routing Fix

I have migrated CodeIgniter from 2.4 to 3.1 but the URL routing is not working when base_url is set to domain name.

Issue raised this issue in the below forums:

[login to view URL]

[login to view URL]

Please go to the Forum to understand bit more about this issue.

Below is some information as posted in StackOverflow:

I am having URL routing issue in CodeIgniter 3.1.9, and would appreciate if someone could help me with this problem. This routing has worked perfectly in CodeIgniter 2.4 and earlier.

Below is the working [login to view URL] in codeigniter 2.4

$route['default_controller'] = "home";

$route['404_override'] = '';

$route['home'] = "home";

$route[test1] = "home";

$route[test2] = "home";

$route[test3] = "home";

$route['test1/select-product] = "home/SelectProduct";

$route['test2/select-product] = "home/SelectProduct";

$route['test3/select-product] = "home/SelectProduct";

Below is web page directory structure and its mapping:

Web root directory structure:


├── application

├── assets

├── test1-> /var/www/html/

├── test2-> /var/www/html/

├── test3-> /var/www/html/

├── [login to view URL]

├── system

/var/www/html/test1 is symbolic link to /var/www/html

/var/www/html/test2 is symbolic link to /var/www/html

/var/www/html/test3 is symbolic link to /var/www/html

"assets" directory has all the customisation for each pages inside test1, test2 and test3.

This set up is working perfectly in CodeIgniter 2.4 using the Public IP or domain name. In the latest version, it is still working when browsed using the private IP with base_url left emply in config.php.

However, in CodeIgniter 3.1.9, when I press continue after filling the form in any of the [login to view URL][1,2,3...] URL, the page returns back to base_url

[login to view URL] points to /var/www/html and is the base_url.

The form for each sub-directories (test1/test2/test3) loads in the correct customised format, but when I press continue to proceed to the next page, it routes it back to [login to view URL]

Expected outcome:

When I click continue on the form located at [login to view URL] it should route to [login to view URL] and likewise for test2 and test3

Please accept this job only if you are an expert in CodeIgniter, PHP and Apache. Agreed payment will be only paid once your recommendation works as expected.

I can allow team viewer access to the right person to work with me to resolve this issue.

Thank you.

Evner: CakePHP, Codeigniter, jQuery / Prototype, MySQL, PHP

Se mere: private pupils of the russian language, Hello there, Monali this side from India. Thank you for posting the project, I have studied your requirements I Have 8+ yea, i need 2-3 data entry experts for some excel work and long term work., how to set the routes in codeigniter, custom route in codeigniter, codeigniter route controller, learn routing in codeigniter, codeigniter 404, using http verbs in routes codeigniter, create controller in codeigniter 3, codeigniter routes not working on live server, php, mysql, codeigniter, jquery / prototype, cakephp, i need 2-3 data entry experts for some excel work and long term work. you will be doing lots of typing. there are mostly studen, We are looking for up to 3 winning ideas for a redesign of the front page of our websit, We are looking for up to 3 winning ideas for a redesign of the front page of our website, We are looking for up to 3 winning ideas for a redesign of the front page of our website.

Om arbejdsgiveren:
( 0 bedømmelser ) Australia

Projekt ID: #17330931

30 freelancere byder i gennemsnit $124 på dette job


Hello, I am ci expert, send me access to team viwer and lets start work right away.....................................................

$50 AUD på 1 dag
(269 bedømmelser)
$150 AUD in 2 dage
(268 bedømmelser)

Hello there, As per my understanding, you need to migrate CodeIgniter. we have 7+year experience in website design and developments in MYSQL, PHP. We are interested in your project. please ping me for discuss more abo Flere

$250 AUD in 3 dage
(132 bedømmelser)

Hi, My work experience as shown in my profile have helped me develop mastery in Website design & development. From your brief, I noticed that you need to migrated CodeIgniter from 2.4 to 3.1 . Please have a l Flere

$30 AUD på 1 dag
(136 bedømmelser)

Dear Hiring Manager, We can help you in the project ROUTING fix in CODEIGNITER. I am good in: php, codeigniter, laravel, jquery, google map api, MySQL. Let me know when we can discuss in more details and start Flere

$40 AUD in 3 dage
(98 bedømmelser)

Hi sir I am Hasan Jack and I have been doing Codeigniter Development since last 5 years, so because of my relevant experience I really feel my self best fit for this job. Looking forward to hear from you to discuss Flere

$150 AUD in 3 dage
(50 bedømmelser)

Dear Sir/Madam, Hope you are doing well. After carefully reviewing the requirements of the job description, I feel that we are very much suitable for the job. We can start working now. please give a chance to work Flere

$111 AUD in 3 dage
(22 bedømmelser)

Hello, I can help you to fix routing issue with your CI project. I know what is the problem with routing after you migrated it from CI 2 to 3. I need cpanel Access to resolve it if you are facitated please message me t Flere

$111 AUD på 1 dag
(67 bedømmelser)

Hi, I have excellent knowledge of CodeIgniter. I have read the thread on CodeIgniter's forum. My initial assessment is you have an issue with the server configuration and you need to use a different approach w Flere

$155 AUD in 3 dage
(44 bedømmelser)

Hello, I always provide fastest results with quality,I have done more than 300 projects here..I have an experience of more than 10 years in web development and maintenance. I have in-depth knowledge of php, mysql, java Flere

$105 AUD in 4 dage
(21 bedømmelser)

Hi there, I’d like to be considered for your job position. I’m a Web Developer with a strong background developing with back end & front end. I can turn your requirement in a way that represents your brand and app Flere

$150 AUD in 3 dage
(12 bedømmelser)

Dear Hiring Manager, I read your job description and I am confident that I can exceed your expectations. I am a professional programmer on PHP+MySQL+WordPress. Here is few recent work for website development : Flere

$155 AUD in 3 dage
(25 bedømmelser)

Hi, Thanks to last 13+ year's of my life, which made me strong to bid on your project. I can take full responsibilities of an IT project, no matter technical or managerial. Below are my details, please take a look Flere

$155 AUD in 3 dage
(9 bedømmelser)

Hi I am a PHP developer. I can fix your issue. I'll try my best to solve this issue as soon as possible. Please come in the chat box for more discussion. Thanks

$100 AUD in 0 dage
(23 bedømmelser)

Hi, I read your requirement, you stated that need some one should complete your project. For your knowledge I would like to explain about my experience here, for more than a decade I am developing and delivering appl Flere

$150 AUD in 3 dage
(23 bedømmelser)

Dear hiring manager, Hope you are doing well! I am a professional Web developer. I have gone through the project description. As per the given brief you are looking for a Web expert cum Designer to build a site Flere

$277 AUD in 3 dage
(20 bedømmelser)

Dear Sir/Madam, Hello, how are you? Just checked your project a few minutes ago. I have some well skilled and highly experienced developers and designers who can fulfill your desire. Flere

$120 AUD in 3 dage
(26 bedømmelser)

Hi I am codeignitor expert. Please give me further details. I have got portfolio url [login to view URL] thanks.

$55 AUD in 2 dage
(41 bedømmelser)

Hello client I am very glad to see your job post I will do my best for your project THanks best regards bingbing

$155 AUD in 3 dage
(10 bedømmelser)

hello, how are you? I completely understand all of your requirements and I can do this job on time and within your budget. I have worked on similar projects and I am confident to exceed your expectations. immediate Flere

$55 AUD på 1 dag
(30 bedømmelser)