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 -~----------~----~----~----~------~----~------~--~---
