We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

CFHEADER 301 shows up as 302 Object Moved

moneygrip
moneygrip asked
on
Medium Priority
505 Views
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="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,

Comment
Watch Question

Commented:
moneygrip,

What's wrong with cflocation

Regards
Plucka

Author

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

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.