Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 490
  • Last Modified:

CFHEADER 301 shows up as 302 Object Moved

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="http://www.yahoo.com/" />
<cfabort>

The Headers come back as

HTTP Status Code: HTTP/1.1 302 Object Moved
Location: http://www.yahoo.com/
Server: Microsoft-IIS/5.0
Content-Type: text/html
Content-Length: 152
Redirect Target: http://www.yahoo.com/

Any ideas why this is happening?

Thanks,

0
moneygrip
Asked:
moneygrip
1 Solution
 
PluckaCommented:
moneygrip,

What's wrong with cflocation

Regards
Plucka
0
 
moneygripAuthor Commented:
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!
0
 
GranModCommented:
Closed, 500 points refunded.
GranMod
The Experts Exchange
Community Support Moderator of all Ages
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now