This was one of the most detailed resources I found on parking and
redirects and discusses how you can wildcard the queries for IIS

http://www.mcanerin.com/EN/articles/301-redirect-IIS.asp

sarah

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Matthew
Sent: Wednesday, 19 December 2007 10:55 AM
To: cfaussie
Subject: [cfaussie] 301 redirect based on Query String


Hi guys,

I've renamed several pages on a website and I'd like to setup 301
redirects, however I can't find out a way to do this based on the
query string. Here's an example to explain:
OLD URL: index.cfm?product=abc
NEW URL: index.cfm?product=def

Everything I've ready on IIS 301 redirects seems to imply that you can
only have a 301 per file and not take into account a query string
attribute. Therefore in the example above all calls to index.cfm would
be redirected!

So am I right in say that I'll have to do the 301 in my CF code i.e.
withing index.cfm have the following:
<cfif url.product eq "abc">
<cfheader statuscode="301" statustext="Moved permanently">
<cfheader name="Location" value="http://www.new-url.com/index.cfm?
product=def">
</cfif>

Cheers
Matthew


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to