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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:03:48+00:00 2026-05-30T22:03:48+00:00

Having issues removing index.php? from the URL: http://localhost/index.php?/reset_password With htaccess file: # Customized error

  • 0

Having issues removing index.php? from the URL:

http://localhost/index.php?/reset_password

With htaccess file:

# Customized error messages.
ErrorDocument 404 /index.php
# Set the default handler.
DirectoryIndex index.php
# Various rewrite rules.
<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php/$1 [L,QSA]
</IfModule>

CI Settings:

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

I looked at the other threads on here with similar problems but none of their htaccess files work. Am I missing a setting?

  • 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-30T22:03:50+00:00Added an answer on May 30, 2026 at 10:03 pm

    I’ve never seen that .htaccess setup before, although it may work. I’ve used this for every CI project I’ve done, give it a try:

    <IfModule mod_rewrite.c>
    
        RewriteEngine on
    
        # If the start of the URL doesn't match one of these...
        RewriteCond $1 !^(index\.php|robots\.txt|assets|cache|themes|uploads)
    
        # Route through index.php
        RewriteRule ^(.*)$ index.php/$1 [L]
    
    </IfModule>
    

    Add don’t forget this in config.php:

    /*
    |--------------------------------------------------------------------------
    | Index File
    |--------------------------------------------------------------------------
    |
    | Typically this will be your index.php file, unless you've renamed it to
    | something else. If you are using mod_rewrite to remove the page set this
    | variable so that it is blank.
    |
    */
    $config['index_page'] = '';
    

    And remember: This will not “remove” index.php from your URL automatically, but rather route the request through it if it isn’t present. If you have hardcoded links with index.php in them, they’ll have to be changed or you’ll need additional .htaccess configuration. If you are using the CI url functions like base_url(), site_url(), and anchor(), they won’t use index.php if you have it blank in your config above.

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

Sidebar

Related Questions

I am having issues removing a node using PHP DomDocument. I have some HTML
I am having an issue removing %3Cbr+%2F%3E from my string using the preg_replace function.
Having issues referencing $(this) from within a the nested ajax 'success' function... I know
I am having some issues receiving UTF-8 XML files back from DHL API. As
I am having some issues creating a setup file for my Outlook 2007 add-in.
I'm having an issue accessing raw request information from PHP when accessing a script
I am having trouble removing files from my main bundle. When I delete them
I'm having issues finding the most efficient way to remove duplicates from a list
I'm having an issue with removing classes from a HTML input when that element
I'm having some issues with removing some HTML elements. Just a few words about

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.