dessie1981
Programmer
Hi Everyone,
Does anyone know how to turn off the index of files listing.
When a user goes to my url and puts in the directory name where my php/html files are they are all listed.
Is there a way of turning this off??
Regards
Dessie
Inappropriate post?
If so, Red Flag it!
Check out the FAQ
area for this forum!
Find A Job or Post a Job Opening Click Here.
jpadie (TechnicalUser)
10 Nov 06 6:26
that's a web server thing, not php. assuming apache upload a file called ".htaccess" with the following
CODE
Options -Indexes
in IIS the option is in the management snap-in under the Home Directory tab
Thank jpadie
for this valuable post!
Inappropriate post?
If so, Red Flag it!
Check out the FAQ
area for this forum!
dessie1981 (Programmer)
13 Nov 06 5:19
Hi Jpadie,
I have created the .htaccess file and added that one line and restarted httpd and the indexes are still showing up in the dir.
I'm using apache btw.
Does this file need to be owned by apache or have certin privleges??
Regards
Dessie
Inappropriate post?
If so, Red Flag it!
Check out the FAQ
area for this forum!
sleipnir214 (Programmer)
13 Nov 06 8:15
I think that since this thread is not discussing PHP, this thread needs to take place in another forum. Like the Apache forum: forum65
Want the best answers? Ask the best questions! TANSTAAFL!
Regards
Dessie
Does anyone know how to turn off the index of files listing.
When a user goes to my url and puts in the directory name where my php/html files are they are all listed.
Is there a way of turning this off??
Regards
Dessie
Inappropriate post?
If so, Red Flag it!
Check out the FAQ
area for this forum!
Find A Job or Post a Job Opening Click Here.
jpadie (TechnicalUser)
10 Nov 06 6:26
that's a web server thing, not php. assuming apache upload a file called ".htaccess" with the following
CODE
Options -Indexes
in IIS the option is in the management snap-in under the Home Directory tab
Thank jpadie
for this valuable post!
Inappropriate post?
If so, Red Flag it!
Check out the FAQ
area for this forum!
dessie1981 (Programmer)
13 Nov 06 5:19
Hi Jpadie,
I have created the .htaccess file and added that one line and restarted httpd and the indexes are still showing up in the dir.
I'm using apache btw.
Does this file need to be owned by apache or have certin privleges??
Regards
Dessie
Inappropriate post?
If so, Red Flag it!
Check out the FAQ
area for this forum!
sleipnir214 (Programmer)
13 Nov 06 8:15
I think that since this thread is not discussing PHP, this thread needs to take place in another forum. Like the Apache forum: forum65
Want the best answers? Ask the best questions! TANSTAAFL!
Regards
Dessie