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

  • Home
  • SEARCH
  • 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 8940999
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T11:11:38+00:00 2026-06-15T11:11:38+00:00

I have 3 servers, a localhost apache server, a testing remote server and the

  • 0

I have 3 servers, a localhost apache server, a testing remote server and the production live server.

I have the same installation of codeigniter and site set-up on all 3 of them and on the localhost and testing servers routing without ‘index.php’ works 100%. On the Production server however, no matter what the URL says only the homepage (via the default controller) will be shown, it seems all routing rules are being ignored except the default one.

If however index.php is added in the URL then it will work like it supposed to.

For instance if the URL on the production site is: ‘www.mysite.com/information’ then the content that loads is form the default controller.

But when the URL on the production site is: ‘www.mysite.com/index.php/information’ then the content that loads is from the ‘information’ controller.

This is the contents of my htacess file: http://pastebin.com/cDaZVJ8A

This is my routes config file: http://pastebin.com/7Ewc2bwN

My $config[‘index_page’] is set to nothing.

I really dont know why its not working, the same setup on all servers in term of codeigniter itself, and mod_rewrite IS working on the production server.

I don’t know what to do, how can I find-out what’s wrong?

  • 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-06-15T11:11:39+00:00Added an answer on June 15, 2026 at 11:11 am

    This is quite a common problem that often occurs when people move a codeigniter install from one environment to another. I have no idea why it occurs, could be a difference in server OS or apache settings, but the solution is often to add a question mark ? to the RewriteRule for the index.php in your .htaccess file.

    Old:

    RewriteRule ^(.*)$ index.php/$1 [L]
    

    New:

    RewriteRule ^(.*)$ index.php?/$1 [L]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have my Apache http server running on localhost:80 and restlet server on localhost:8182,
I have a problem executing a process from our testing server. On my localhost
I have set up an Apache server running locally that hosts my web application
I have a socket server in php server.php $master = WebSocket(localhost,800); $sockets = array($master);
I have created login account on my localhost\sql2008 Server (Eg. User123) Mapped to Database
So i have just moved everything from my localhost to a new online server
I have a connection string like this: SERVER=localhost;DATABASE=tree;UID=root;PASSWORD=branch;Min Pool Size = 0;Max Pool Size=200
I have 2 servers. On Server 1 I have a WordPress website. On Server
I have 2 servers setup at the moment. One is a web server running
I have a .htaccess file for a directory on my apache server. Currently this

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.