|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
Can't get 301 permanent redirect to work correctly
A while back we restructured our site. This meant adding redirects on old pages for search engines, direct links etc.Scott Doc 12/09/08 11:55 P I'm going to guess that the page in question has a <cflocation> in it thatMatt Quackenbush 12/10/08 12:09 A I ran a test on the same code block which you have and it works for me.Randy 12/10/08 07:59 A 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? I'm going to guess that the page in question has a <cflocation> in it that is firing. 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.
|
May 24, 2012
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||