ColdFusion redirect – cflocation

Adobe ColdFusionI had to change the domain of a longstanding ColdFusion site with hundreds of pages. With .htaccess on an Apache Linux host this is easy and well documented. With ColdFusion on IIS when you are not a full administrator of the IIS server…. not so much.  My searches found post after post with the same instruction, how to redirect an individual page or an entire domain to one single new URL. Whaaatttt!? Why you no care about your customers and visitors!

Adobe cflocation doc – not exactly chocked full of details

Google returns a lot of sites with the simple but not very helpful nuclear option:

Then I found a rare post on Katzwebservices with details on how to redirect a single page, prefix all pages with www or  https and how to properly redirect an entire website:

The Author of the code gives a shout to Ben Nadel and can be found in the comments here:

I used the code there and ended up with the below to redirect all pages from an existing site and forums on domainA to domainB. Google picked it up within 2 days and all pages are now listed with Thank you Ben Zadel and  Zack Katz!

Leave a Reply

Your email address will not be published. Required fields are marked *