homepage Welcome to WebmasterWorld Guest from
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 to change "Index.htm" page to "Index.html?
Error: The requested URL was not found on this........

10+ Year Member

Msg#: 10442 posted 6:28 pm on Jun 21, 2005 (gmt 0)

I have a small problem.

The index page of my website is called "index.htm".

The home link on the index page gives the error
"The requested URL was not found on this server"

I use MS Front Page to upload/publish the website.
FrontPage automatically renames the index page....
"Index.html" How do I correct this? Should I rename the index page to "index.html? I have over 70 pages connected to my index page. How would the change affect the rest of the website? I'll try anything..

Thanks in advance.



WebmasterWorld Senior Member 10+ Year Member

Msg#: 10442 posted 7:23 pm on Jun 21, 2005 (gmt 0)

This sounds like a server configuration problem to me. Check with your host to make sure your index files can use a .htm extension.

If you used FrontPage to publish your site, there's the possibility that the file never actually got uploaded to your server. If you have a good FTP program, check your server to make sure the index.htm file is in your document root.

Alternatively, try visiting yoursite.com/index.htm and see if it works. If not, the file didn't get uploaded. If the file is there, then the server isn't recognizing it as your index page.


WebmasterWorld Senior Member 10+ Year Member

Msg#: 10442 posted 7:45 pm on Jun 21, 2005 (gmt 0)

So what is actual name of the file on the server and in the links? If they differ, then it's easier to change the name of the file than loads of links.

Remember that if you have multiple index files, then first is found the highest:


Best regards
Michal Cibor


5+ Year Member

Msg#: 10442 posted 7:43 am on Jun 24, 2005 (gmt 0)

I suppose in a roundabout way it's a server configuration issue... but

My first thought was... "You have 70 links to your index page?" Why?

Are these loose links or do you mean links from your menus?
If they're from your menus, then you need to learn a way to template your sites so that you reduce redundant code.
A menu should only appear in one file once and just get reused from there.
This is a prime example of wysiwyg making the difficult things easy but the easy things difficult.

In either case, if you have to change the links, I like to use a tabbed text editor that would easily allow you to open all the pages at once and then do a global find/replace.

I don't know if I'm allowed to mention the application in here so PM me if you want more info.

I realize that changing all the links will mess up what frontpage is doing so perhaps you could create a dummy index.html page that does an instant redirect to your index.htm page.



10+ Year Member

Msg#: 10442 posted 8:00 am on Jun 24, 2005 (gmt 0)

you also need to make sure you're using the same uppercase / lowercase spelling of this file everywhere.

A Unix / Linux server will consider Index.html to be a different file from index.html


WebmasterWorld Senior Member g1smd us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

Msg#: 10442 posted 10:58 pm on Jun 26, 2005 (gmt 0)

When you link to an index file, never mention the index file filename in the link. End it with the folder name followed by a trailing / on the URL. This allows you to change the filename from index.html to index.php without having to change any of the links at all. The server will go through the list in the DirectoryIndex list and serve up the right file automatically. You do not have to worry what that file is actually called.


5+ Year Member

Msg#: 10442 posted 4:20 am on Jun 27, 2005 (gmt 0)

"What a silly bunt!"
(for you monty python fans out there)

Excellent answer.

It's so obvious, I just couldn't see it.

Thanks g1smd. That little gem will get tucked away in my chest of goodies :)


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