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 3794402
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T12:55:27+00:00 2026-05-19T12:55:27+00:00

I have a CI app that after switching servers, doesn’t seem to route properly.

  • 0

I have a CI app that after switching servers, doesn’t seem to route properly.

In my config I have

$config['uri_protocol'] = "PATH_INFO";
$config['enable_query_strings'] = TRUE;

This should allow both query string parameters and url segments.

So this, should in theory work (as it is on the old server):

http://www.domain.com/register?param=something

However, no matter what URL I go to it only shows the index.

So if I go to http://www.domain.com/register

It shows this in the address bar, however it doesn’t get the register controller, it’s showing the index.

If I change the ‘uri_protocol’ to REQUEST_URI, it works. But then query string parameters won’t.

My .htaccess is

DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|assets|robots\.txt|favicon\.ico|license.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php/$1 [L,QSA] 

RewriteCond %{QUERY_STRING} .
RewriteRule ^$ /? [L]  

Any ideas what the issue could be? Like I say, it’s working on a different server. So, I’m thinking something to do with apache perhaps?

Thanks a lot!

  • 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-19T12:55:27+00:00Added an answer on May 19, 2026 at 12:55 pm

    I’d guess, RewriteCond $1 never evaluates to true and no redirect happens.

    You can, actually, reduce these two lines to one:

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    

    It’s sufficient to write

    RewriteCond %{REQUEST_FILENAME} !-f
    

    Since the -f test checks files and directories. If this still fails to produce your expected results, inspect PATH_INFO and ORIG_PATH_INFO in $_SERVER if they’re actually present.

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

Sidebar

Related Questions

I have a free App that I am about to update. After the update
I have this .NET web app that draws a table in Page_Load. Then after
After switching to Rails 3, I noticed that I have to reboot my server
I have a app that will populate a UITableView after the user takes a
I have an app that requires me to take an action after some period
I have an app that has some consumable items, after they are used, user
have an app that finds your GPS location successfully, but I need to be
Have an app that has listings - think classified ads - and each listing
I have an app that needs to open a new window (in the same
I have an app that executes commands on a Linux server via SSH just

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.