At a protocol level - a change in the search part value does not constitute a permanent move. The RFC's defining status codes, URL layouts and etc weren't written with applications that use query strings to generate completely differentiated content from the same page in mind. What you're application is doing is essentially a hack that has become so common place that it's now considered a norm - but it's still not how the protocol was expected to be used - so some things don't handle it gracefully.
I'd introduce an assocation of product code ABC with product code DEF in the application - so that either query string value would return the same content. If your application can't be easily modified to allow that, CFLocation is probably your best bet. Matthew wrote: > 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 -~----------~----~----~----~------~----~------~--~---
