Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 25, 2012, 10:43:26 AM

Pages: [1]   Go Down
  Print  
Author Topic: File naming question  (Read 366 times)
Bluelight
Jedi
*****
Offline Offline

Posts: 836


« on: May 19, 2002, 06:13:00 AM »

When making my site i like to keep all pages in separate folders.Now i learned that i must name my entrance page in the main folder "index" and to prevent that the site is wiewed as a folder catalog and for security.

  What im wondering is:Is it necessary to name each page file in each folder Index to for the same reason? IF so you end up with a lot of index pages which are only separated by the folder name.Is that the way?

                  Bluey
Logged
Brian
Jedi
*****
Offline Offline

Posts: 874


WWW
« Reply #1 on: May 19, 2002, 06:28:00 AM »

it's not "necessary" to name any file index, it's just a good idea. i suppose if you wanted you could just name the files whatever you wanted and just a put an index page in every folder that forwards to the main, if you are trying to prevent people from seeing the file list.

-Brian
Logged

Bluelight
Jedi
*****
Offline Offline

Posts: 836


« Reply #2 on: May 19, 2002, 03:55:00 PM »

Ok.Thanks Brian!
Ill name them all index and separate them by folders.
   This is fun!

 


  Bluey
Logged
TWebMan
Quantum Encyclopedia Writer
*****
Offline Offline

Posts: 3112



WWW
« Reply #3 on: May 19, 2002, 04:18:00 PM »

Bluey, you can make a regular text file.  In it type

Options -Indexes

Call it .htaccess That's it, just .htaccess

Upload it to any directory you don't want people to be able to browse- that is, view a listing of files in.  Try it in a directory that has no file named index in it, and go to that directory in your browser.  You'll see.

One thing.  Any file that starts with a . in Unix is hidden, and once you upload it you won't see it in FTP.  But you can always go into your file manager, and you'll see it there.

.htaccess with Options -Indexes is good for image directories an cgi-bins too.

[ May 20, 2002: Message edited by: TWebMan ]

Logged

"Computers cause people to make more mistakes than any other invention in history, with the possible exception of handguns and tequila."  - Unknown
"Liberty of any kind is seldom lost all at once." - D. Hume
Every day is an Ode to Joy
The planet will be fine... and so will your site
the prof
Trekkie
**
Offline Offline

Posts: 18


WWW
« Reply #4 on: June 05, 2002, 01:15:00 PM »

Another handy option is to make your index.html pages in each folder point back to your base URL.

Just create a blank page, and add inside script tags in the head section:

code
Quote
Logged

The Prof from Cyberschool
Johnny
MR-Disabled
Über Jedi
*
Offline Offline

Posts: 1914



« Reply #5 on: June 05, 2002, 04:56:00 PM »

I was of the impression that you had to have an index.html doc for your main page. I use a frameset, and the doc that ties the mainframe.html and leftframe.html together is index.html. I have all of my graphics, html files and folders that contain programs for download under: /public_html
Is there anyway that I can protect against people from directly linking to my downloads from their site?
Logged

Pages: [1]   Go Up
  Print  
 
Jump to: