Skip to main content
November 23, 2007
Question

Changing page .htm to .cfm / search engine indexes?

  • November 23, 2007
  • 4 replies
  • 739 views
I have a central page on a site that has been up as domain/page.htm for more than 10 years. It is listed multiple times on popular search engines, and I am sure it's bookmarked by its users. The page is already on a CF site, and I would like to add to it a small cf look-up; but if I change it to .cfm, will I lose all my www search-engine links and search-history? If I change domain/page.htm to be a relocation pointer to domain/page.cfm, will the relocation usage blacklist the page with the web-crawlers? Is there another approach?
    This topic has been closed for replies.

    4 replies

    December 3, 2007
    Azadi, with the approach I took, the iframe is probably the neatest method. However, the recent post by Kapitaine is new to me, and also useful to know. Thanks, both.
    -keyman.
    Inspiring
    December 2, 2007
    have you considered an iframe instead of a popup window?

    ---
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com
    December 3, 2007
    I think a better solution (especially from an SEO point of view) is to use application.cfm or even better application.cfc to capture the people that enter in on that page - then redirect them to your new index.cfm.

    You should probably use a proper header for this too instead of simply using a cflocation. This way, search engines will soon learn that the old .htm should no longer be used and has infact been moved to a new resource .cfm.

    <cfheader statuscode="301" statustext="Moved Permanently" />
    <cfheader name="Location" value=" http://www.example.com/index.cfm" />
    <cfabort />

    Use some IF, ELSE logic in your application file to do this.

    Hope that helps,

    thanks.

    Michael.
    December 1, 2007
    Thanks for your reply.
    What I ended up doing was to retain the old page, but I added an onLoad pop-up that runs a .cfm query to get the factoids that I want to show. I used javascript to pass that info to the main page.

    It used to be possible to run the pop-up out of sight of the screen display, but no longer, so the pop-up does show itself. It can't be made real tiny any more either - seems both of these browser changes were due to security considerations. So I bit the bullet, and placed some new content-related information in the pop-up while doing the query.

    I tried doing the same in a frame. But I've never liked frames except in really special situations, so went as above, which resolved my original concerns.
    Inspiring
    November 24, 2007
    Make a copy of the page and name that one CFM so you can add the functionality to it.

    Leave the old HTM file in place but add a JS or META relocation to it so the search engines will still find it as well as your users. Spiders don;t actually process the code on the page, so it won't affect them, while regular users will be relocated to the CFM page.

    Eventually the spiders will also list the CFM file in the sercah listings as it is used mroe and they find it as well as everything else. When you are happy with the status the CFM file has, you can remove the actual HTM file.