| Private Hosting Questions about VPS, dedicated servers and colocation. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
|
|
#1 (permalink) |
|
Registered User
Seasoned Poster
Joined in May 2004
41 posts
Gave thanks: 0
Thanked 0 times
|
Getting Rid of Indexing
Hey, I can't figure out how to stop my server from defaulting to Indexing each folder. Is there a default option somewhere or do I need to do it by hand on every folder?
__________________
Server: Dedicated WA1 Site: ______Scandals.com |
|
|
|
|
|
#2 (permalink) |
|
SurPerson
On a golden path...
Joined in Jul 2004
Lives in front of my laptop
Hosted on Sync
437 posts
Gave thanks: 0
Thanked 1 Time in 1 Post
|
Make a .htaccess file in your root folder
Put in it: Options -Indexes Should work, it's what I do.
__________________
Me: TeeJay Server: Sync (Statistics) Site: technoized.com (Statistics) chown -R us ./base |
|
|
|
|
|
#4 (permalink) | |
|
Senior Member
Excelling Contributor
Joined in Jun 2004
748 posts
Gave thanks: 0
Thanked 0 times
|
Quote:
![]() |
|
|
|
|
|
|
#5 (permalink) |
|
Registered User
Seasoned Poster
Joined in Feb 2004
34 posts
Gave thanks: 0
Thanked 0 times
|
What do you mean by indexing? If you mean people having direct access the files/folders in that directory (and you don't want them to), then all you have to do is create a blank index.html and drop it into the folders you do not want to have people having direct access too. It's real simple, just create a new .txt file and rename it to index.html.
If this is not what you mean, then please disregard. |
|
|
|
|
|
#6 (permalink) |
|
Senior Member
Excelling Contributor
Joined in Jun 2004
748 posts
Gave thanks: 0
Thanked 0 times
|
Hi Shawn,
That is EXACTLY what was meant. The problem is when you have many websites and hundreds of directories, it can become a real pain to add an index.html file to every single one of them and it is so easy to overlook one. Sam's solution was just an easy way around it. Thanks for your suggestion. |
|
|
|
|
|
#7 (permalink) |
|
Registered User
Seasoned Poster
Joined in May 2004
41 posts
Gave thanks: 0
Thanked 0 times
|
Sams way works but I still have to do it by hand for each directory. I'm way to afraid to do anything in .htaccess
__________________
Server: Dedicated WA1 Site: ______Scandals.com |
|
|
|