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" />
<!--- Method 2 --->
<cfheader name="Location" value="drop_shadow.html" />
<cfheader statusCode="302" statusText="Found" />
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.
K12 Systems, Inc.