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