404.php 964 B

123456789101112131415161718192021222324252627282930313233343536
  1. <html>
  2. <head>
  3. <title>404</title>
  4. </head>
  5. <body>
  6. <h1>404: Document Not Found</h1>
  7. <p>
  8. The page you were looking for was not found.
  9. </p>
  10. <hr>
  11. <?php
  12. // If the request URI starts with "/moodle/" then we can ignore this problem,
  13. // since it's a problem following our move.
  14. $request_uri = $_SERVER['REQUEST_URI'];
  15. if (strcasecmp(substr($request_uri, 0, 8), '/moodle/') != 0) {
  16. // Take everything after the domain name, and prepend our new address
  17. $newurl = "http://www.sloodle.org/moodle".$request_uri;
  18. echo <<<XXXEODXXX
  19. <p style="font-size:110%;">
  20. <strong>Please Note:</strong> most of the <a href="http://www.sloodle.org">Sloodle.org</a> site was recently moved to <a href="http://www.sloodle.org/moodle">Sloodle.org/moodle</a>. The address you were looking for may now be at:
  21. </p>
  22. <p style="font-size:150%; font-weight:bold;">
  23. <a href="{$newurl}" title="Click here to try this address instead">{$newurl}</a>
  24. </p>
  25. XXXEODXXX;
  26. }
  27. ?>
  28. </body>
  29. </html>