CFHEADER 301 shows up as 302 Object Moved

Posted on 2006-03-23
Last Modified: 2013-12-24
I am trying to redirect certain pages under one domain to another and have the links show up to search engine spiders as 301 Moved Permanently.  The solution is quite common and works well on our Windows 2003/IIS6 CF7 Server.

However on windows 2000/IIS5/CF 5 I do a 301 redirect and when I check the header, I get a 302 Object moved.  

This is the ONLY code on the page.

<cfheader statuscode="301" statustext="Moved Permanently" />
<cfheader name="Location" value="" />

The Headers come back as

HTTP Status Code: HTTP/1.1 302 Object Moved
Server: Microsoft-IIS/5.0
Content-Type: text/html
Content-Length: 152
Redirect Target:

Any ideas why this is happening?


Question by:moneygrip
    LVL 18

    Expert Comment


    What's wrong with cflocation


    Author Comment

    cflocation will definetley throw a 302.  I think I have it solved.  By making sure location is all lowercase, a 301 seems to happen.  Location throws a 302!  CF5 was so quirky!

    Accepted Solution

    Closed, 500 points refunded.
    The Experts Exchange
    Community Support Moderator of all Ages

    Featured Post

    Scale it in WD Gold

    With up to ten times the workload capacity of desktop drives, WD Gold hard drives employ advanced technology to deliver among the best in reliability, capacity, power efficiency and performance.

    Join & Write a Comment

    One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
    If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now