« Back to SEO Tools

ColdFusion, PHP, and ASP Redirect Scripts
If your website is changing domain names or web pages either temporarily or permanently, remember to set the right redirect script so your website stays up to date in SERPS and passes page rank accordingly. Below are 301 and 302 scripts for .cfm, .php, and .asp pages that you can copy and paste directly into page code for your convenience. Remember to use our HTTP Status Code Checker to verify it is working properly. If you are unsure about which to use, we recommend you read this blog post by Matt Cutts.

ColdFusion 301 Redirect Code

ColdFusion 302 Redirect Code

PHP 301 Redirect Code

PHP 302 Redirect Code

ASP 301 Redirect Code

ASP 302 Redirect Code