HTML - Why Use Index Files In Every Directory?
I use a program (Guardian) to send me notifications when an error occurs on my site (404, 403 etc.) These notices contain the URL causing the error and the referring URL. Lately I have been getting numerous notifications with URLs to directories without index files (On a side note, these URLs also contain within them, urls to other sites. I assume this is some spammer technique and I am not too concerned about this in this post but if someone can shed some light on how/why they (the spammers) do this I would appreciate it.)
My purpose in posting here is to find out about the use of index files in directories. I have read that this is a good idea, but I have yet to hear why except that in case someone navigates to the URL of the directory rather than the actual page URL, then they will not get a 403 error message, but this seems like a rather weak reason to me. Is there another reason? SEO reason? Technical reason? If I find good reason to do this, is it enough to just put a blank index file in each directory? If so why? What purpose does it serve (aside from thwarting the spammers doing what I described above.) Thanks in advance for your help. Similar TutorialsHello forum, I have a very simple question which I can't solve: My html code looks something like this (in index.html with a directory of 'next/' which has the file index.html: HTML Code: <html><head /><body> <a href="next/">Continue</a> </body></html> Then when the link is clicked, it gets a permission error (meaning the browser can't find anything in the directory). Why is this? Shouldn't it automatically get into the index.html? thanks in advance, drmota Hi, I've decided to use subdirectories and index.html files to present my all my web pages (www.website.com/about, with a index.html file within the about folder). But I am finding it difficult to view my website locally when editing, as I open it in either firefox, safari, opera and every time time I hit a link it doesn't direct me to the index.html file, but instead shows me every file located within the directory. Is there anyway round this, as I am having to upload every page to view the changes I make to it. For example, do you know of any extensions or different web browsers that don't do this? Thanks, Matthew is there like a slick way to view a list of files in a ftp directory in html code? Hello, I have the page "index.html" in my root folder, as well as another "index.html" page in a subdirectory. I feel like a moron for not being able to figure this out on my own, but here goes: How do I create a link from my subdirectory index.html page to the one in my root folder? Any help is much appreciated. OK it said be specific so here it is. I am a first time html'er infact I am just now in an html/css class, the downside is my honors organization wanted a website this week. I was able to build something novice like @ http://www.asu-bap.com what I noticed is when I use images or a css stylesheet on the index page everything works grandiose. However, when I reference the same style sheet on other pages such as join.html or announcements.html it would not use the style sheet. I got really irritated and just embedded the css into each page individually. Think that my code was just that bad and i had nowhere to go for help. Then... I tried to do an image on my calendar.html, and i had the same issue... I even tried (as I had with the css file) to create a brand new directory called calendar and putting the img in there. To no avail, it still would not pull up the image. I am like 90% sure my code is right for the image so then I found this website and decided to try to get help here. Here is my code for the calendar (its a word doc converted I just added links and img), I have everything uploaded to root directory. Please help. And if you fix what could have been my css referencing issue, I wills end you cookies! Code: <STYLE TYPE="text/css" MEDIA=screen> <!-- body { padding-left: 11em;} ul.navbar { list-style-type: none; padding: 0; margin: 0; position: absolute; top: 2em; left: 1em; width: 9em } ul.navbar li { background: white; margin: 0.5em 0; padding: 0.3em; } ul.navbar a { text-decoration: none } a:link { color: blue } a:visited { color: purple } address { margin-top: 1em; padding-top: 1em; border-top: thin dotted } --> </STYLE> <!-- Site navigation menu --> <div class="style1"> <ul class="navbar"> <li><a href="http://www.asu-bap.com/">Home</a> <li><a href="http://www.asu-bap.com/forums/">Forums</a> <li><a href="http://www.asu-bap.com/announcements.html/">Announcements</a> <li><a href="http://www.asu-bap.com/join.html/">How to Join Beta Alpha Psi</a> <li><a href="http://www.asu-bap.com/calendar.html/">Calendar of Events</a> </ul> <img src="1_BAP_color.jpeg" /> Hello, I'm trying to create a little page that auto updates itself whenever new files are added. The system is layered such that I have the top level index.html file, then in the same directory, I can add new folders that contain other index.html files. What I want to do is have the top level index.html file pick up every sub directory, grab the name from the directory, and then create a link to that directory's index.html file and then display it in the top level index.html file. So what I have right now is this: HTML Code: <body> <a href="myFirstDirectory/index.html">myFirstDirectory.html</a> </body> There is other stuff, but this is the part I need help with. As you can see, I also want the name that is displayed to be the same name as the directory. I do not know how to automate this if I have other folders in there like directory2, directory3, etc. Can anyone show me an example of how to do this or walk me through it? Thanks in advance. I finally figured out how to add text to my index and now I have another question. In my website template There is Heading 1 and a Heading 2 so my question is how do I delete any sections or headings that I don't need to make it go away on my home page. There is so much and I don't think I need all of it..... Thanks in advance http://www.website.com/thisisapage/ ^Can somebody explain how to set up directories on my website as such. Because this seems to be saying that a directory is a file, even though I know that is not the case. Shouldn't all pages have an extension of some sort and does this have something to do with SSI or something? hi, im creating a script where users will be able to upload files to my site from a form, i was wondering if i could stop files from being executed from the upload directory because if a user desides to upload a harmfull php file them execute it on the site, well it would be bad. so, can i do this by setting the directory permissions (chmodd) to 444, only allowing reading? thanks! Hey all! I am having trouble figuring out how to fill a list with the names of the folders in a certain directory anyhelp would be great! EDIT: I need to figure out how to get all the folders names from "www.mysite.com/files/" and add them to a list in dreamweaver and what ever one i click on it loads all the files from that folder to another list... anyone got any direction i should go... I pretty clueless but am still googling info trying to catch something... Thanks! Hi, I'm building a site for a dj record pool. I set up a paypal subscription button and ".htaccess, .htpasword, process_txns, paypal.pl" scripts on the site. I'm looking for a way to provide individual links for all mp3 downloads (10 gigs worth), without having to type in all song titles every week when new files are uploaded. Is this possible? Thanks Hey I've got this issue with a website of mine even though my html link says /members/patrolroster.html once i am there (patrolroster.html) all other links from that (and all pages inside the /members directory for that matter) page via the nav menu get /members affixed onto them (eg, what should just be index.html turns into /members/index.html). My html says it should go to index.html but where is /members coming from? Im puzzled at why it affixes the directory the file is in onto all outgoing links. Take a look at the site if you like its, http://www.wyeriverslsc.asn.au/ Any help is appreciated, Tom I am working with a new client and am trying to access their admin area on the ecommerce site. I think I found the correct directory but am not able to get past a directory security pop up that asks for login information. Of course the client does not have this. I have FTP access and am trying to figure out if I can get around this pop up and finally get to the admin login. There is a .htaccess file with the following contents: PHP Code: #AuthType Basic #AuthName "OS Commerce Administration" #AuthUserFile "/home/lucid/.htpasswds/catalog/admin/passwd" #require valid-user I've removed this file completely and I still get that pop up. Can someone help. Please. I'm wanting to be able to look into a certain directory and pull whatever is in there and make it a link on the page so the person that is vewing it can pull up what is in that directory. All that is going to be in the directory is going to be documents, and I don't want to have to edit my html document every time there is a new file put into the directory. Is there a way to do this in HTML? I made a directory lister with the following attributes: Images will be displayed as thumbnails Thumbnails are automatically generated Page is automatically updated and redrawn on each access All colors, fonts, and sizes are customizable One index file is required to be placed in each directory It is simply a graphical directory lister - nothing needs to be configured for it to work http://www.phpstory.net/graphics/75 I'm looking for some feedback for improvement and can pretty much make anything happen. It's complete for the most part but I guess first thoughts and suggestions would be helpful in completing the script. I want to make it publicly available at some point and I haven't really gotten enough feedback to call it "finished". It was coded by me 100% - nothing has been borrowed or copied! Thanks!! I need to display a web form from which the user can select a directory -- not a file. This seems like it ought to be easy, but I can't find an explanation of how to do it. Here's the code I wrote (with a little PHP removed): Code: <form enctype="multipart/form-data" action="ImportExec.php" method="GET" > Select the <em>directory</em> containing .eml files.<br><br> <input type="file" name=directoryPath> <input type="hidden" name="scriptPath" value="xxxxxxxx"> <input type="hidden" name="domain" value="yyyyyyyy"> <input type="submit" value="Open directory"> </form> As it is, this lets me choose a file -- not a directory. If I try to select a directory, it just opens the directory and invites me to choose a file from it. i was wondering if there was a simple method or a program that can find all active links linking from a certain directory. for example, say a website like http://www.website.com/index.html has 15 active links and 5 broken links. i want to be able to view a list of all the active links on the page without actually clicking all the links on the page. is that possible? if so, how? I have a folder/directory with lots of photos in it. I want visitors to be able to click a link and download the entire directory (rather than having to load every individual photo file). This way, they can copy to their own computer & perhaps burn a CD. I'm using <a href="http://mysite.com/images/CD_directory/"> but this is NOT working the way I want; it shows an INDEXING of all the photo files, and doesn't allow for clicking the Directory itself. How can I get around this & offer this Directory for download? Thanks! The IT Industry in India is booming! Here is a great opportunity for you to sell your products and services to this industry which is rapidly expanding. Subscribe to India's most comprehensive Online IT Directory! Features: >> You will be able to search an IT Company (ies) >> Drill down to details like Address, Area, Pin, Phone, Fax, Email, Website, Year of Establishment, About the company. >> Product & Services offered by the company. >> Contact details of Top executives including Managing Director, President, CEO, CTO, CFO, HR Manager. etc. >> Continously updated and verified. >> Generate mailer labels by executive title. To subscribe logon to www.itdatahouse.com Regards The itdatahouse.com Team +91 80 23537776 ext 1 URL: http://www.itdatahouse.com I need a directory chooser control on my webpage please suggest a solution ASAP.... <input type="file"/> this creates a file chooser the same way I need a directory chooser.... Any solution will do, be it Javascript or ActiveX. Prompt response would be highly appreciated |