Hi everyone, Thanks for the feedback. BRETT/ANDREW: you're right, my problem is that SE's are trying to spider to this page (and cloging up my inbox with errors) hence why I want to 301 so that the SE's learn about the new page. SEAN: what you've said makes sense but out of interest how else would you build a website without re-using a page? That's the point of URL parameters isn't it?
Cheers again everyone. On Dec 19, 12:30 pm, "Brett Payne-Rhodes" <[EMAIL PROTECTED]> wrote: > I'd be wondering whether this is really a 301 problem though. Isn't it just > that the product no longer exists? index.cfm still exists. Is there some > danger that search engines will start to drop indexes for your index.cfm urls? > > Like I said... just wondering out loud really... > > B) > > > > 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 > > -- > Brett Payne-Rhodes > Eaglehawk Computing > t: +61 (0)8 9371-0471 > m: +61 (0)414 371 047 > e: [EMAIL PROTECTED] > w:www.yoursite.net.au --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
