Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 7th, 2012  |  syntax: None  |  size: 0.50 KB  |  hits: 80  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.  
  3. header("HTTP/1.1 301 Moved Permanently", false, 301);
  4. //echo 1;
  5.  $redir = "http://della.ua";
  6.  
  7.  $redir .= $_SERVER['REQUEST_URI'];
  8.  header("Location: ".$redir);
  9.  
  10. ?>
  11.  
  12. <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
  13. <html>
  14. <head>
  15.   <meta http-equiv="Refresh" content="10; url=http://www.della.in.ua">
  16.   <title>301 Moved Permanently</title>
  17. </head>
  18.  
  19. <body>
  20.    <h1>Moved Permanently</h1>
  21.    <p>The document has moved <a href="http://www.della.in.ua">here</a></p>.
  22. </body>