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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:23:31+00:00 2026-06-18T00:23:31+00:00

I am trying to learn about mod_rewrite. <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / #Removes

  • 0

I am trying to learn about mod_rewrite.

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    #Removes access to the system folder by users.
    #Additionally this will allow you to create a System.php controller,
    #previously this would not have been possible.
    #'system' can be replaced if you have renamed your system folder.
    RewriteCond %{REQUEST_URI} ^system.*
    RewriteRule ^(.*)$ /indexl.php?/$1 [L]

    #When your application folder isn't in the system folder
    #This snippet prevents user access to the application folder
    #Submitted by: Fabdrol
    #Rename 'application' to your applications folder name.
    RewriteCond %{REQUEST_URI} ^application.*
    RewriteRule ^(.*)$ /indexl.php?/$1 [L]

    #Checks to see if the user is attempting to access a valid file,
    #such as an image or css document, if this isn't true it sends the
    #request to index.php
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ indexl.php?/$1 [L]

    </IfModule> 

This is the content of my .htacces file in CI. I use this file because supossedly it works on some other application. However this does not work if I change the name of the index.php I get the directory structure in the browser. So I am wondering if it is working even when the name of the file is index.php, or does it automaticly use index.php. Shouldnt this

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

redirect every request to indexl.php???

  • 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-18T00:23:32+00:00Added an answer on June 18, 2026 at 12:23 am

    The RewriteRule snippet redirects depending the URL path given. If you specify an empty one with http://example.com/, then the -f and -d checks won’t fail. Thus there will be no rewriting to said indexl.php script.

    And in absence of any index.* file (wether .php or .html) Apaches auto index (directory list) will take over.

    You can however use:

    DirectoryIndex indexl.php
    

    So with an empty path your index script will still run.

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

Sidebar

Related Questions

I'm trying to learn about this feature of javascript I keep seeing in code,
I'm trying to learn about how does Java access smart cards, due to a
In trying to learn about Ruby execution methods, I found this blog post on
I am trying to learn more about java. This program is an attempt to
I am trying to learn about MYSQL Joins but am having trouble figuring this
I'm trying to learn about trees by implementing one from scratch. In this case
Trying to learn about php's arrays today. I have a set of arrays like
I'm trying learn more about RavenDB and at the moment to focus on how
I am trying to learn about the ScriptProperties object in GAS. I tried setting
I've been trying to learn about metaclasses in Python. I get the main idea,

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.