House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

Can't get 301 permanent redirect to work correctly

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Scott Doc
12/09/2008 11:55 PM

A while back we restructured our site. This meant adding redirects on old pages for search engines, direct links etc. So I added the following code on effected pages: <cfheader statuscode="301" statustext="Moved permanently"> <cfheader name="Location" value="http://www.example.net/test.cfm?page=4">; <cfabort> Recently I checked our redirects with a tool found here: http://www.seoconsultants.com/tools/headers.asp It reported that it was receiving an HTTP Status Code of: HTTP/1.1 302 Object Moved Why is that? And, more importantly, does this matter? It seems it has "moved" it isn't a "302 Found" but it isn't a 301 either... I'm confused. Why is it ignoring my cfheader statuscode?

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Matt Quackenbush
12/10/2008 12:09 AM

I'm going to guess that the page in question has a <cflocation> in it that is firing.

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Randy
12/10/2008 07:59 AM

I ran a test on the same code block which you have and it works for me. However I did not check it against the tool you are using. <cfheader statuscode="301" statustext="Moved permanently"> <cfheader name="Location" value="page_2.cfm<http://www.example.net/test.cfm?page=4>; "> <cfabort> On Wed, Dec 10, 2008 at 12:01 AM, Matt Quackenbush <quackfuzed@gmail.com>wrote: > I'm going to guess that the page in question has a <cflocation> in it that > is firing.


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

May 24, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
     1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31     

Designer, Developer and mobile workflow conference