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

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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:56:02+00:00 2026-06-09T18:56:02+00:00

Every sub directory inside the directories ‘application’ and ‘system’ in my codeingiter web application

  • 0

Every sub directory inside the directories ‘application’ and ‘system’ in my codeingiter web application has an index.html file. Inside this HTML file there is what looks to be a standard error message. It contains this code:

<html>
    <head>
        <title>403 Forbidden</title>
    </head>
    <body>
        <p>Directory access is forbidden.</p>
    </body>
</html>

I assume these are created so that if anyone tried to visit a directory inside either ‘application’ or ‘system’ it wouldn’t list all the files, but would instead show an error.

These seem redundant though as I have added an .htaccess in each directory to deny all access. Every PHP file in those two directories also has the first line:

if ( ! defined('BASEPATH')) exit('No direct script access allowed');

Which should mean that no one can view any of those files at all (as I am protected once by the .htaccess and once by that line of PHP).

Therefore my question is – in the interest of keeping my web application organised and clutter free, can I safely remove these index.html files? Will this cause any bad side effects to my codeigniter web application?

Thanks in advance

  • 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-09T18:56:04+00:00Added an answer on June 9, 2026 at 6:56 pm

    Yes, you can remove them.

    but even if you have proper rights in place, you should have them there. as they are there on only purpose, in case, you forgot to implement proper directory browsing rights

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

Sidebar

Related Questions

I need to temporarily shut down a web sub-directory and all of its sub-directories
I have 7 Categories (parents), and every category has 15 sub-categories. When I select
I have a directory tree with sub-directories, and I want to add it to
I'm wanting to change the icon of every sub folder in a particular directory,
I have a directory: /home/user/ How can I list every file in this directory
I want to iterate through every jpg/jpeg file in a directory and every subdirectory
I want to revert a directory and all sub-directories in an SVN working copy
I have a directory which consist of some different sub directory which every one
I have a LabVIEW application that I inherited that has a bunch of sub-VIs.
hi every one i am creating a Root Directory and sub Directory in data/data/com.exp.android/files

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.