Advertisement
Guest User

PHP & htaccess redirect

a guest
May 8th, 2012
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.29 KB | None | 0 0
  1. <?php
  2. // Permanent redirection PHP Level
  3. header("HTTP/1.1 301 Moved Permanently");
  4. header("Location: http://www.example.com/cheap-locks/");
  5. exit();
  6. ?>
  7.  
  8. // Permanent redirection htaccess Level
  9. RewriteEngine on
  10. RewriteRule ^/cheap-locks.php$ http://www.example.com/cheap-locks [L,R=301]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement