you pretty much have to have an index.html(or .htm or default.asp etc) for it to work.
Yes - it is the page the will show up when some enters yourdomain.com.
>"You don't have permission to access this
That message is used as a security precaution by some hosts (like the one I use) when there is no index.html page, so that the directory structure is not visible to anyone.
OK I'll rename "www.mypages.com/firstpage.html" "index.html".
What if someone types in "www.mypages.com/firstpage.html."
I want them to see "index.html" when they put this in.
How do I do this?
You could use a 100% frameset in the same directory, name it firstpage.html
<title> **PUT YOUR TITLE HERE, LIZZIE** </title>
<frameset rows="100%,*" frameborder="NO" border="0" framespacing="0">
<frame name="frame_my_index" scrolling="YES" noresize src="index.html">
<frame name="blank_frame" src="blank.htm">
<p>What browser ARE you using?</p>
Edited by: rcjordan
You can add the following to your .htaccess file in the main directory. This will force anyname.html to be the default. It doesn't even have to have a .html or .htm extesion. It could be .txt, .cgi, etc.
In your case it would be
Froggyman I think you got it.
Let me go try.
lizzie, are you on a Apache Unix type server? if you are then create a file called .htaccess (note the period, it must be included) and place the following line in it:
DirectoryIndex index.html index.htm firstpage.html
Create the .htaccess file with the above line in it using a text editor, then upload it to your web root directory with your FTP client set to ASCII or text mode.
Once you have done that, you can use either index.html or index.htm or firstpage.html as your default page.
This way, when www.yourdomain.com is entered, the server will search for a page named index.html if it doesn't find it it will look for index.htm and if it doesn't find that it will search for firstpage.html and display whichever it finds as the default page.
[added]Looks like I was too slow on the draw - good one Froggyman:)[/added]
Air I was just about to ask!
This is all new to me, I greatly approciate the help!
Let me now go back and try it.
I did it just like you said and it doesn't work.
Yes I'm on a UNIX server.
The file is in my root directory and is listed like
this in my webshell:
Ignore my last message, I got it to work.
I made the file on the server and it didn't
end in .txt.