I'm experimenting with setting a 301 'Moved Permanently" header for a 
large reorganization of our site.

My first experiment was with using .htaccess with the following line in it:

redirect 301 /301_old.html http://dprweb:2222/301_new.html 

This immediately caused my entire website to crash and return a 500 error.

My second experiment was with using some ColdFusion code:
<cfheader statuscode="301" statustext="Moved permanently">
<cfheader name="Location" value="http://dprweb:2222/301_new.html";>

This seemed to work on the surface, as when I put the 301_old.cfm URL in 
a browser I ended up on the 301_new.html page.  But looking at the 
actual HTTP requests and responses I seem to be getting a 301 Found 
status instead of a 301 Moved Permanently.  Is this expected?  My 
understanding of what I have read indicates otherwise.

HTTP/1.x 302 Found
Date: Tue, 04 Sep 2007 20:34:30 GMT
Server: Apache/1.3.12 (Unix) ApacheJServ/1.1.2
Location: http://dprweb:2222/301_new.html
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1

Anyone out there experienced in configuring and using 301 redirects help 
me with the ins and outs.

TIA
Ian Skinner



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287728
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to