Forum Moderators: open

Message Too Old, No Replies

Redirecting old coldfusion pages

How to redirect old coldfusion pages to new static pages in IIS

         

Ebizbooster

11:52 pm on Dec 7, 2006 (gmt 0)

10+ Year Member



I have a client that is switching from coldfusion driven pages to static html pages on windows hosting. I understand how I would do this if it were ASP with a shell of the old page url and the simple redirect code inside.

But I've never dealt with coldfusion and don't know how I would this. Essentially trying to take website.com/index.cfm?pageid=4 to website.com/widgets.html and so on for a small number of pages.

Thanks in advance for any advice

blueheelers

5:59 am on Dec 20, 2006 (gmt 0)

10+ Year Member



You may try a custom 404 handler that will create 301 redirects to the new page.

The script will look at the URL and you can tell it where to redirect to. Also, be sure and add the redirect so the search engines will update their index with the new page.

LifeinAsia

5:17 pm on Dec 20, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



In the .cfm page, use the following:
<cfheader statuscode="301" statustext="Moved permanently">
<cfheader name="Location" value="http://www.newdomain.com/newpage.htm">

Use CFIF or CFCASE or whatever you were previously doing to account for the different pageid variables passed.