| Author |
simple index html question
|
|
| bobby davro 2004-08-26, 12:22 pm |
| Hi,
Do i need an index.html page in every folder that i work in,
or is that not required?
| |
|
|
| bobby davro 2004-08-26, 12:22 pm |
| hmmm.
but i always thought you had to have an index.html page in each folder to stop people from being able to see your folder structure layout.
Is this not the case?
| |
|
|
|
|
| gareth 2004-08-26, 12:22 pm |
| You DO really need an index.htm page in each folder, and the URL provided
was a perfect example of why.
If you take a look at http://www.summertownclinic.co.uk/practitioners/
you`ll see that because there is no index.htm, you don`t get a web page,
just a list of the files in that directory. Much better to have an index.htm
page, even if its only job is to redirect the users to another page
automatically.
--
Gareth - TMM Dreamweaver
http://www.dreamweavermxsupport.com/
http://www.garethdp.com/
PHP Login Suite V2 - 34 Server Behaviors to build a complete Login system.
http://www.phploginsuite.co.uk/
Co-Author: Dreamweaver MX: Instant Troubleshooter - Apress
Co-Author: Practical Intranet Development - Apress
Co-Author: Dreamweaver MX: Advanced PHP Web Development - Apress
Co-Author: Dreamweaver MX: PHP Web Development - Wrox
| |
| rbewley 2004-08-26, 12:22 pm |
| then i guess the index.htm is the answer.
it is also useful if you want to point visitors directly to a subfolder
without the file name too:
www.mycompany.com/products
etc, etc...
I have never really seen this as a problem per se, as the site's visitors are
unlikely to manually visit the root of a subfolder
| |
| Michael Fesser 2004-08-26, 12:22 pm |
| .oO(gareth)
>You DO really need an index.htm page in each folder,
Depends.
>and the URL provided
>was a perfect example of why.
>
>If you take a look at http://www.summertownclinic.co.uk/practitioners/
>you`ll see that because there is no index.htm, you don`t get a web page,
>just a list of the files in that directory.
Broken server configuration.
>Much better to have an index.htm
>page, even if its only job is to redirect the users to another page
>automatically.
Even better:
Options -Indexes
in a .htaccess file (on Apache servers) to prevent directory indexing,
the server will return a 403 "Forbidden" then.
Micha
| |
|
|
| .: Nadia :.TMM :. 2004-08-26, 12:22 pm |
| and that's why you should have an index page in the folders exactly as
Gareth mentioned. You may have missed his post....
--
Nadia
---------------
http://www.DreamweaverResources.com
Free Templates | Free Nav Bar Sets
Dropdown Menu Designs | CSS Layouts
Ecommerce - YVStore | SEO Articles
Table Tutorials | Background image Tutorials
------------------------------------------------
MM Dreamweaver Tutorials
http://macromedia.com/devnet/mx/dreamweaver/
------------------------------------------------
Team Macromedia Volunteer for Dreamweaver
"bobby davro" <webforumsuser@macromedia.com> wrote in message
news:cgkgil$bns$1@forums.macromedia.com...
> will if i enter this into a browser window
> http://www.summertownclinic.co.uk/practitioners
>
> I can see the whole folder structure..................
>
> I don't want my customers to see something like that....
>
| |
| robot88888888 2004-08-26, 12:22 pm |
| > hmmm.
> but i always thought you had to have an index.html page in each folder to
stop people from being able to see your folder structure layout.
> Is this not the case?
That is going to depend on your host. Some hosts allow you to modify the
server settings and give an error instead of displaying the directory
structure if the index page doesn't exist. If your website displays the
structure, then use index pages to prevent that.
| |
| Murray *TMM* 2004-08-26, 12:22 pm |
| Let's set the record straight here.
YOU DO NOT NEED INDEX.HTML files in each folder.
If you do not want people to be able to browse your folders, ask your host
to stop folder acess. Then trying to list the contents of a folder will
trigger a FORBIDDEN page without any further action on your part.
In addition, if the default filename used by your host is NOT index.htm(l),
then you can put index pages into yoru folders until you are blue in the
face, and it won't help. If you *really* want to do this, then make sure
you know what your host's default filename is first.
Finally, you may well encounter a situation where you have several of these
"index" pages open at the same time for editing. Knowing which one goes
where can be a challenge
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"rbewley" <webforumsuser@macromedia.com> wrote in message
news:cgkgt7$c0p$1@forums.macromedia.com...
> then i guess the index.htm is the answer.
> it is also useful if you want to point visitors directly to a subfolder
> without the file name too:
> www.mycompany.com/products
> etc, etc...
>
> I have never really seen this as a problem per se, as the site's visitors
> are
> unlikely to manually visit the root of a subfolder
>
|
|
|
|
| Copyright 2003 - 2009 forum4designers.com Software forum Computer Hardware reviews |