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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T11:31:33+00:00 2026-05-31T11:31:33+00:00

Currently, when you visit my website’s sub folders, it shows the directory listing. That’s

  • 0

Currently, when you visit my website’s sub folders, it shows the directory listing. That’s really scary since it contains php classes with sensitive information. Now I was successful in turing off the directory listing by using “IndexIgnore *” in my root .htaccess file. That partially works by showing a blank directory listing. However, I would like to be able to do one of the following two if it is possible:

  1. Redirect to a folder above, and if that folder doesn’t contain an index.php either, go up another level. Handy for folders such as http://www.duaworld.com/resources/images/about

  2. If that’s not possible, simply redirect to the root of the site

I had a look at the following question but that only works if there is a 403 error message. In my case, it shows a blank directory, no error.

How to redirect or show a page rather than "Forbidden" when i have directory listings off (htaccess/unix)

Thanks alot for the help guys.

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

    may be this is probably best solution for you request

    Thanks

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

Sidebar

Related Questions

I currently have a website built in PHP, I'm hoping to build a referral
I've got a website that generates a random quote every time you visit the
I am setting up a new website and currently if I go to mydomian/php/someScript.php
Currently I have: RewriteCond %{HTTP_HOST} ^site\.com [NC] RewriteRule (.*) http://www.site.com/$1 [R=301,L] When I visit
Currently, I am writing a MiddleWare application that synchronizes information between and accounting application
Currently working with converting SQLException error messages into messages that are more useful for
Currently I have this code: <?php echo '<meta name=robots content=noindex>'; $arr = json_decode(file_get_contents(http://media1.clubpenguin.com/play/en/web_service/game_configs/ paper_items.json),true);
I am currently building a basic website. So far so good, however it's getting
I've been asked to set up a redirect on a website. Currently the website
Hi, I have built a ASP.NET MVC website that uses Membership, this works fine.

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.