Thanks for that, I actually did try putting a CFABORT after the CFHEADERs, it 
wouldn't work at all without it.
 
Funny thing is, CFLOCATION actually does change the URL in the browser. I've 
tried moving the CFHEADER to the very top of the Application.cfm file, still no 
dice.
 
Anyway, its not a major issue, I might just have to leave it as a CFLOCATION.
 
I might be able to hack something together using ISAPI rewrite if I'm bothered.




From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rony 
Fayyad
Sent: Tuesday, 18 December 2007 11:02 AM
To: cfaussie@googlegroups.com
Subject: [cfaussie] Re: 301 redirect not changing URL


Hi Ryan
 
Try this :
 
<cfheader statuscode="301" statustext="Moved Permanently" />
<cfheader name="location" value="http://www.new-url.com"; /> 
<cfabort />
 
I am not sure if this wil solve your problem, but give it a go mate!
 
Also , try the CFLOCATION to see if the address changes  correctly ( this is 
more of a debug thing than a solution ).
 
If none of the above work, can you please let me know what  code is being run 
before / after calling the CFHeader tag.
 
Cheers,
Rony
----- Original Message ----- 
From: Ryan Sabir 
To: 'cfaussie@googlegroups.com' 
Sent: Tuesday, December 18, 2007 10:48 AM
Subject: [cfaussie] Re: 301 redirect not changing URL


 
CFLOCATION is a 302 redirect. It tells the search engine that the resource 
requested has been moved temporarily. A 301 redirect tells a search engine that 
the resource has been moved permanently, so no longer look for it at the 
original URL.
 
At least that's how I understand how it works.

 


From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Blair 
McKenzie
Sent: Tuesday, 18 December 2007 10:42 AM
To: cfaussie@googlegroups.com
Subject: [cfaussie] Re: 301 redirect not changing URL


Is there any reason not to use cflocation? Does it not handle that stuff?

Blair


On Dec 18, 2007 10:38 AM, Ryan Sabir <[EMAIL PROTECTED]> wrote: 

Yeah but I want the redirect to be a "Moved Permanently" rather than "Moved 
Temporarily". Its for a site that has changed its URL structure.




From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andrew 
Scott
Sent: Tuesday, 18 December 2007 10:06 AM
To: cfaussie@googlegroups.com
Subject: [cfaussie] Re: 301 redirect not changing URL


Try 302 instead.
 


Andrew Scott
Senior Coldfusion Developer
Aegeon Pty. Ltd.
www.aegeon.com.au
Phone: +613  9015 8628
Mobile: 0404 998 273
 
 
From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ryan 
Sabir
Sent: Tuesday, 18 December 2007 9:59 AM
To: 'cfaussie@googlegroups.com'
Subject: [cfaussie] 301 redirect not changing URL
 
Heya, 
 
I'm doing a 301 redirect using CFHEADER like so:
 
<cfheader statuscode="301" statustext="Moved permanently">
<cfheader name="Location" value="http://www.new-url.com";> 
 
The redirect correctly shows the new page content, but the URL in the browser 
window is still the old URL. If I bookmark it, its actually bookmarking the old 
URL. How can I do an SEO friendly redirect, and change the URL as well?
 
thanks.
 
 
Ryan Sabir
Technical Director

p: (02) 9274 8030
f: (02) 9274 8099
m: 0411 512 454
w: www.newgency.comNewgency Pty Ltd
Web | Multimedia | eMarketing

115 Cooper St
Surry Hills NSW 2010
Sydney, Australia
 


 




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