Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
JohnK1965 #1
How can I set HTTP Status code 301 on redirecting toanother coldfusion page
I have an application that intercepts a 404 error and redirects to a new CF
page. Currently, search engines and other robots only see the 404 error. I am
currently using cflocation to set the url. Can anyone give me an idea how to
redirect and send an HTTP status code of 301 for permanantly moved? I've tried
setting the status using the CFHEADER tag above the CFLocation but than it
never redirects and gets a true 404 error.
Any help appreciated.
JohnK1965 Guest
-
HTTP Status 500 Error with SSL
Background: I can browse to http://me.com/flex2gateway/ and receive a blank page with no errors. I cannot browse to https://me.com/flex2gateway/ -... -
HTTP Status-Code=503 (Service Unavailable)
Hello, I'm doing a performance test and my test graudually increases the connections to the webservice. Everything works well until my... -
Redirecting HTTP request
Here's my requirement: When a desktop application (smart client) makes a request to our ASP.NET server, the request has to be redirected to a 3rd... -
HTTP status 401
Hi All, I have a webservice on a win 2003 server and I'm trying to call it from another win2003 server which is hosting my sharepoint portal... -
#19113 [Com]: HTTP status 200 returned on HTTP CONNECT when mod_proxy not in use
ID: 19113 Comment by: arafuse at bcexplorers dot com Reported By: php_new at jdc dot parodius dot com Status: ... -
Joseph Gooch #2
Re: How can I set HTTP Status code 301 on redirecting to anothercoldfusion page
JohnK1965 wrote:
As far as I can tell, these lines are equivalent:> I have an application that intercepts a 404 error and redirects to a new CF
> page. Currently, search engines and other robots only see the 404 error. I am
> currently using cflocation to set the url. Can anyone give me an idea how to
> redirect and send an HTTP status code of 301 for permanantly moved? I've tried
> setting the status using the CFHEADER tag above the CFLocation but than it
> never redirects and gets a true 404 error.
>
> Any help appreciated.
>
<cfsetting showdebugoutput="false" />
<!--- Method 1 --->
<cflocation url="drop_shadow.html" />
<cfabort />
<!--- Method 2 --->
<cfheader name="Location" value="drop_shadow.html" />
<cfheader statusCode="302" statusText="Found" />
<cfabort />
Both throw a 302 code on my server.
Maybe it would help to turn off HTTP Status Codes in the cf
administrator? Or, perhaps your frontend web server is having some play
in this situation.
Joe Gooch
K12 Systems, Inc.
Joseph Gooch Guest
-
James-Pr #3
Re: How can I set HTTP Status code 301 on redirecting toanother coldfusion page
I am looking for the same solution. When I try:
<cfheader statusCode="301" statusText="Moved Permanently">
<cfheader name="Location" value="#newURL#">
it still returns a 302. Does anyone know a solution? Do you get the same
response?
James-Pr Guest



Reply With Quote

