homepage Welcome to WebmasterWorld Guest from 54.227.12.4
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
How do I make My home/main or index page?
My pages are on the server but where is my main page?
lizzie




msg:573192
 11:05 pm on Mar 26, 2001 (gmt 0)

I've just loaded my pages on the server of my new host.
But when I go to my URL (www.mypages.com) I
see the message "You don't have permission to access this
server."
If I name one page "index.html" is this the page that will
show when I go to www.mypages.com? I don't really want a
page named "index.html".

 

oilman




msg:573193
 11:08 pm on Mar 26, 2001 (gmt 0)

lizzie,
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.

Marcia




msg:573194
 12:27 am on Mar 27, 2001 (gmt 0)

>"You don't have permission to access this
server."

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.

lizzie




msg:573195
 1:03 am on Mar 27, 2001 (gmt 0)

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?

rcjordan




msg:573196
 1:17 am on Mar 27, 2001 (gmt 0)

You could use a 100% frameset in the same directory, name it firstpage.html
============
<html>
<head>
<title> **PUT YOUR TITLE HERE, LIZZIE** </title>
</head>

<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">
</frameset>

<noframes><body bgcolor="#FFFFFF">
<h1>GEEZ!</h1>
<p>What browser ARE you using?</p>

</body></noframes>
</html>

Edited by: rcjordan

Froggyman




msg:573197
 1:21 am on Mar 27, 2001 (gmt 0)

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.

DirectoryIndex anypage.html

In your case it would be

DirectoryIndex firstpage.html

lizzie




msg:573198
 1:25 am on Mar 27, 2001 (gmt 0)

Froggyman I think you got it.
Let me go try.

Air




msg:573199
 1:35 am on Mar 27, 2001 (gmt 0)

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]

lizzie




msg:573200
 1:39 am on Mar 27, 2001 (gmt 0)

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.

lizzie




msg:573201
 3:19 pm on Mar 27, 2001 (gmt 0)

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:
.htaccess.txt

lizzie




msg:573202
 4:03 pm on Mar 27, 2001 (gmt 0)

Ignore my last message, I got it to work.
I made the file on the server and it didn't
end in .txt.
It works!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved