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.

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

Näytä lisää: 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.

Tietoa työnantajasta:
( 0 arvostelua ) Australia

Projektin tunnus: #17330931

30 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön


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

$50 AUD 1 päivässä
(269 arvostelua)
$150 AUD 2 päivässä
(268 arvostelua)

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 Lisää

$250 AUD 3 päivässä
(132 arvostelua)

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 Lisää

$30 AUD 1 päivässä
(136 arvostelua)

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 Lisää

$40 AUD 3 päivässä
(98 arvostelua)

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 Lisää

$150 AUD 3 päivässä
(50 arvostelua)

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 Lisää

$111 AUD 3 päivässä
(22 arvostelua)

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 Lisää

$111 AUD 1 päivässä
(67 arvostelua)

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 Lisää

$155 AUD 3 päivässä
(44 arvostelua)

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 Lisää

$105 AUD 4 päivässä
(21 arvostelua)

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 Lisää

$150 AUD 3 päivässä
(12 arvostelua)

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 : Lisää

$155 AUD 3 päivässä
(25 arvostelua)

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 Lisää

$155 AUD 3 päivässä
(9 arvostelua)

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 0 päivässä
(23 arvostelua)

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 Lisää

$150 AUD 3 päivässä
(23 arvostelua)

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 Lisää

$277 AUD 3 päivässä
(20 arvostelua)

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. Lisää

$120 AUD 3 päivässä
(26 arvostelua)

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

$55 AUD 2 päivässä
(41 arvostelua)

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 3 päivässä
(10 arvostelua)

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 Lisää

$55 AUD 1 päivässä
(30 arvostelua)