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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:47:27+00:00 2026-05-26T11:47:27+00:00

I have a codeigniter app and i wanted to remove index.php from the URI.

  • 0

I have a codeigniter app and i wanted to remove index.php from the URI. so from the codeigniter wiki i used this script.

It stopped working once i change a config, after this change all my urls only returned home page. No matter what link i used, it only gives me the home page of my site. So i reverted it back to index.php but the server still works the same way. I tried deleting the .htacess file completely then update it with the new one which actually works but even then its working the same way. (all urls redirected to home page) Im totally out of clue, on whats wrong with my script or server.

P.S : when using .htacess i did make $config[“index”] to be blank.

UPDATE

Now i removed everything else from my .htaccess file and i have only this which is the essential part to remove index.php from uri segment

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

Even with only these all my urls are taking me only to the home page. I am clueless as of whats happening.

  • 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-26T11:47:27+00:00Added an answer on May 26, 2026 at 11:47 am

    In your app/config/config.php try changing the value of:

    $config['uri_protocol'] = 'AUTO';

    to:

    $config['uri_protocol'] = 'REQUEST_URI';

    If still not working, try the remaining options (PATH_INFO, QUERY_STRING, ORIG_PATH_INFO).

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

Sidebar

Related Questions

I have run into this problem in my Codeigniter app: A PHP Error was
I'm working on an app in CodeIgniter, and I want to have admin pages
I'm using CodeIgniter (a PHP framework) to build an app, and I have an
We're building a PHP app based on Good old codeigniter framework and have run
I have a code for form validating in my CodeIgniter app: $this->load->library('form_validation'); $this->form_validation->set_rules('message', 'Message',
I have a PHP app built on Codeigniter 1.7.2, currently in production and live,
I have a codeigniter app working fine locally with WAMP. However, I am having
I have a codeigniter code that is working on local Apache installation. But it
I have this function on my controller (Im using CodeIgniter) that reads the database,
I have an Codeigniter app (using version 2.1.0) that is writing a transaction to

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.