How does one use HTACCESS? THANKS SULLY & ROSSMAN! ***FIXED***

Nocturnal

Lifer
Jan 8, 2002
18,927
0
76
I want to put pictures on my host however my host has open directories. I want to learn how to use htaccess so that I can have it say something like restricted or something along those lines. Thanks!
 

yllus

Elite Member & Lifer
Aug 20, 2000
20,577
432
126
Create a file called .htaccess with one line in it:

Options -Indexes

That'll do it.
 

Twista

Diamond Member
Jun 19, 2003
9,646
1
0
Originally posted by: yllus
Create a file called .htaccess with one line in it:

Options -Indexes

That'll do it.

whatever he just said.
 

Crucial

Diamond Member
Dec 21, 2000
5,026
0
71
make sure you put an .htaccess file in each folder that you have pictures in. If you want to allow the folders to be accessed just remove the - before Indexes.
 

RossMAN

Grand Nagus
Feb 24, 2000
78,868
368
136
Ryan,

You can do this (what sully suggested) from within cPanel, very easy to do.

AIM me if you need help.