PHP 301 Redirect


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php
  2. header("HTTP/1.1 301 Moved Permanently");
  3. header( "Status: 301 Moved Permanently" );
  4. header("Location: http://www.newdomain.com/page.html");
  5. exit();
  6. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.