homepage Welcome to WebmasterWorld Guest from 54.197.19.35
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........
Senmar50




msg:564647
 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.
SMA

 

MatthewHSE




msg:564648
 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.

mcibor




msg:564649
 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:

html
shtml
htm
php

Best regards
Michal Cibor

SuperNovaCain




msg:564650
 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.

SuperNĪvaCain

mole




msg:564651
 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

g1smd




msg:564652
 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.

SuperNovaCain




msg:564653
 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 :)

SuperNĪvaCain

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