How do I make a 301 redirect (permanently) from url1 to url2?

Permanently redirecting traffic using <cfheader> with statuscode="301" is the best way to ensure that your web-visitors and search engine spiders continue to find content that has permanently moved to a new location.

<cfheader statuscode="301" statustext="Moved permanently">
<cfheader name="Location" value="http://www.newUrl.com">

This question was written by Jeremy Petersen
It was last updated on June 19, 2006.

Categories

Miscellaneous

Comments

comments powered by Disqus