[ic] index.htm / index.html

Mike Heins mike at perusion.com
Tue Jan 17 14:06:39 EST 2006


Quoting Brian (brianmac at brimac.com):
> 
> On Tue, 17 Jan 2006 19:22:57 +0100
> "Eric Bont" <eric_bont at hotmail.com> wrote:
> 
> > Hi,
> > 
> > My old site (html website) used index.htm. This site has a high google 
> > ranking using www.xxx.com/index.htm
> > 
> > My new interchange site (same domainname other ip) use as startpage 
> > index.html instead of index.htm
> > 
> > My problem is that all the (old) Google links are now dead links looking for 
> > .htm instead .html
> > 
> > I made copy of pages/index.html to pages/index.htm but it still doesn't 
> > work. What else can I do?
> > 
> 
> If you have shell access you can make a link from the old index.htm to
> the new index.html (assumes some kind of unix o.s.):
> 
> ln -s  index.html index.htm

This won't work for Interchange.

But on the Apache side, it is easy to do with the mod_rewrite
module:

    RewriteEngine On
    RewriteRule  ^/index.htm$ http://www.yoursite.com/index.html [L,R=301]

-- 
Mike Heins
Perusion -- Expert Interchange Consulting    http://www.perusion.com/
phone +1.765.647.1295  tollfree 800-949-1889 <mike at perusion.com>

Nature, to be commanded, must be obeyed. -- Francis Bacon


More information about the interchange-users mailing list