PDA

View Full Version : question about page extensions


clickhappy392103
11-09-2009, 10:15 AM
I have a question. I just finished re-building a site for a local non profit agency for abused kids and have run into a problem with exterior links. They had their old site build using Frontpage using .htm extensions on all their pages. I didn't know that when I built the site, so I used .html. There are a bunch of exterior sites that link to different pages of the old site. I was thinking about building some redirect pages in the file structure as the linked sites are found. My question is, can I have .htm and .html files in the site directory? I thought I read somewhere that they have to be the same.

For example here is one link from another site pointing to the old site pages:
http://www.adriel.org/history/history.htm
This is the address for this page is:
http://www.adriel.org/history.html

So I was planning on building a page with the same file structure of history/history.htm and adding a little redirect text with hyperlink ,and add this code above the head tag

<META HTTP-EQUIV="REFRESH"
CONTENT="1; URL=http://www.adriel.org/history.html">

Should this work?

Eric Mittman
11-09-2009, 05:18 PM
You should have no issues doing the redirect like this. I think that there is a more proper method for redirecting the user to a newer version of a page but I'm not very familiar with the value off hand, it may be worth looking into though especially if you want to ensure SEO. Having html and htm pages in the site should not be an issue though, they should get served up by your web server the same.

darcylars393629
11-13-2009, 05:17 AM
Yes you are correct, there is no difference between .htm and .html.
So we you can replace .html insted of .htm. But you don't want kepp the same files in the Directory.