index.htm renamed to index.html

T

Thomas A. Rowe

Note: because the redirection time value is less than 7 to 10 second, and no
actual hyperlink on the page, the site may not be indexed by search engines,
if search engine placement is a concern.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle,
MS KB Quick Links, etc.
==============================================
 
S

Steve Easton

Interesting way to do it Paul.

However, imho why not just use the extension that
the server requires.
FrontPage will adjust any and all links to the home page.

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
O

Orest Kinasevych

Thomas said:
Ok, so does Apache support unique default documents on a per web basis or is
it server wide?

If it is server wide, then the user has to rename his home page that which
is required by the web host, unless it can be set in the .htaccess file or
whatever is use to configure a web site on Apache.

Just asking to see if there's a solution in it:

What would happen if the user were to have both "index.htm" and
"index.html" in the same local directory? Perhaps, while publishing the
web, if FP finds that it's publishing both an "index.htm" and an
"index.html" it may not overwrite one with the other?

Getting back to .htaccess files -- they can indeed be placed in
individual Apache web directories to add/change configuration directives
to the web directory and its subdirectories.

So:

DirectoryIndex index.html

will designate "index.html" as the default directory page. Any
directives for DirectoryIndex that were set server-wide (in httpd.conf)
will be ignored. (I tested this to be sure and it worked on my test
server at least, Apache/FreeBSD.)

This brings up two issues: 1) when publishing, will FP be guided by the
local .htaccess file or by the server-wide httpd.conf file in renaming
"index.html"? and 2) doesn't FP itself overwrite the .htaccess file with
its own data, which may conflict with any Apache-specific
configuration? I suppose it wouldn't hurt to give it a try.
 
S

Steve Easton

Yes you can have both index.htm
and index.html in the root on the server
However, if you edit index.htm locally
and publish, index.html gets updated
and index.htm gets ignored.

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
T

Thomas A. Rowe

Actually, duplicating the current home page, and saving it under the name
required by the server would solve the problem.

It would work like this:

When a user come to the site as http://www.domainname.com
They would get index.html (the default document required by the server)

Then as the user navigates the web site, any internal links that point to
the home page will go to index.htm.


--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle,
MS KB Quick Links, etc.
==============================================
 
D

David Baxter

Thanks, Orest -

You have correctly and succinctly summarized not only my concerns but
also the concerns of the host, who is by the way being as cooperative as
he can be but obviously doesn't want to break links on several other
sites just to accommodate me.
 
D

David Baxter

Inline even though I don't usually bottom post either...

Steve Easton said:
Inline below even though I'm not normally a bottom poster.
Why, because he made his site that way.??
Rename the home page to index.html and FrontPage will rename
every link to it in the time it takes to click OK.
What earthly difference does it make, what the file name of the home page
is.
It's invisible to everyone but the web author when he's viewing the site in
folder view anyway.

Because although the site has just been moved to this server, it has
existed since 1996 and I'd rather not have to worry about people who
have bookmarked index.htm having to change their bookmarks. I realize
it can be managed in various ways - however, a few years ago when I was
on a UNIX server I know I didn't have this problem - there was an order
in which default.htm(l), index.htm(l), and home.htm(l) were searched but
the UNIX server was happy with any of the listed forms... in the present
case, all those forms are listed - just not all of them first.
 
D

David Baxter

Yes I do... see my previous reply as to why I'd rather not do this.
However, it's beginning to look as though I'll have to live with it.

Thanks for trying, all...
 
S

Steve Easton

Dave try this:
You need to change the default mime types for text/html

If you have the webmasters CPanel, open it and go
to Advanced Menu. Select Mime types, and change text/html
from: html htm .shtml to: html htm .shtml .htm

that "should" fix it.


--
Steve Easton
MS MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer
 
D

David Baxter

thanks... I'll give it a try...


Steve Easton said:
Dave try this:
You need to change the default mime types for text/html

If you have the webmasters CPanel, open it and go
to Advanced Menu. Select Mime types, and change text/html
from: html htm .shtml to: html htm .shtml .htm

that "should" fix it.


--
Steve Easton
MS MVP FrontPage
95isalive
This site is best viewed..................
..............................with a computer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top