Advertisement
Guest User

PHP/HTML redirect

a guest
Jul 19th, 2011
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. PHP are very easy:
  2.  
  3. <?php
  4. header( 'Location: http://www.redirect-location.com' );
  5. exit();
  6. ?>
  7.  
  8.  
  9. That is literally all you need to put in the the PHP file to make the redirect work. No matter though, redirects with HTML are similarly easy, but you do need to create a regular HTML structured file, and then put this meta statement into the head:
  10.  
  11. <meta http-equiv="refresh" content="1;url=http://www.redirect-location.com">
  12.  
  13.  
  14.  
  15. Place the following HTML redirect code between the <HEAD> and </HEAD> tags of your HTML code.
  16.  
  17. <meta HTTP-EQUIV="REFRESH" content="0; url=http://www.yourdomain.com/index.html">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement