PHP 301 redirect


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

PHP 301 redirect code for giving a page a 301 permanently moved code


Copy this code and paste it in your HTML
  1. <?php
  2. Header( "HTTP/1.1 301 Moved Permanently" );
  3. Header( "Location: http://www.example.com" );
  4. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.