Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Protecting directorys and subs "SOLVED"

Options
  • 28-11-2007 8:44pm
    #1
    Registered Users Posts: 4,386 ✭✭✭


    Hi guys I want to protect my directorys

    Now I'm trying to do it by .htaccess file but it dosen't seem to be working

    here's what I'm doing.

    my .htacess file is

    ErrorDocument 404 /index.php

    ErrorDocument 403 /errorpage.html

    ErrorDocument 401 /errorpage.html

    I have it uploaded to the root of the domain and

    The 404 error page works as it redirects to the index page, but the forbidden 403 just looks like this http://www.buggyauctioneers.com/photos/ not my website, I just don't want people to be able to see this list but redirect them to the error page

    I want just to protect all the directories and subdirectories

    SOLVED
    Thought I'd post solution for other's who may need it

    I needed to add

    Options -Indexes

    Good resource http://www.freewebmasterhelp.com/tutorials/htaccess/


Comments

  • Closed Accounts Posts: 2,161 ✭✭✭steve-hosting36


    Depending on your provider, many control panels offer the option to switch indexes on and off too.


Advertisement