301 Redirect with ColdFusion dynamic url

Viewed 30

Long time listeners, first time callers.

We are trying to accept old inbound links, that are currently bouncing.

The old urls contain: /County_Detail.cfm/CountyID:XXX   (XXX = UniqueID)

We want the old links to redirect to /Counties/County_Detail.cfm?CountyID=XXX

We're using CF10 and IIS 8.5

We simply want to replace the delimiters / and :

We've tried a number of settings, with the following as the latest: 

<rewrite>
<rules>
<rule name="Rewrite Counties" stopProcessing="true">
<match url="^County_Detail.cfm([a-zA-Z0-9-+]+)CountyID([a-zA-Z0-9-+]+)" />
<action type="Redirect" url="County_Detail.cfm{R:1}CountyID{R:2}" />
</rule>
</rules>
</rewrite>

Would someone kindly point out the error of our ways.

Thank you, so much!

0 Answers
Related