Good question, but I believe google will punish you if you do not redirect a
page. Could be wrong:-)



Andrew Scott
Senior Coldfusion Developer
Aegeon Pty. Ltd.
www.aegeon.com.au
Phone: +613  9015 8628
Mobile: 0404 998 273



-----Original Message-----
From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of Brett Payne-Rhodes
Sent: Wednesday, 19 December 2007 12:31 PM
To: cfaussie@googlegroups.com
Subject: [cfaussie] Re: 301 redirect based on Query String


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 cfaussie@googlegroups.com
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