Welcome to WebmasterWorld Guest from 107.20.108.136

Forum Moderators: incrediBILL

Message Too Old, No Replies

How do I make My home/main or index page?

My pages are on the server but where is my main page?

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

Preferred Member

10+ Year Member

joined:July 22, 2000
posts:385
votes: 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".
11:08 pm on Mar 26, 2001 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 10, 2000
posts:2151
votes: 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.

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

Senior Member

WebmasterWorld Senior Member marcia is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Sept 29, 2000
posts:12095
votes: 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.

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

Preferred Member

10+ Year Member

joined:July 22, 2000
posts:385
votes: 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?
1:17 am on Mar 27, 2001 (gmt 0)

Senior Member

WebmasterWorld Senior Member rcjordan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Apr 22, 2000
posts:9138
votes: 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

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

Full Member

joined:Jan 24, 2001
posts:230
votes: 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

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

Preferred Member

10+ Year Member

joined:July 22, 2000
posts:385
votes: 0


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

Air

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 10, 2000
posts:1253
votes: 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]

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

Preferred Member

10+ Year Member

joined:July 22, 2000
posts:385
votes: 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.
3:19 pm on Mar 27, 2001 (gmt 0)

Preferred Member

10+ Year Member

joined:July 22, 2000
posts:385
votes: 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
4:03 pm on Mar 27, 2001 (gmt 0)

Preferred Member

10+ Year Member

joined:July 22, 2000
posts:385
votes: 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!
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members