summaryrefslogtreecommitdiffstats
path: root/404.rb
diff options
context:
space:
mode:
Diffstat (limited to '404.rb')
-rwxr-xr-x404.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/404.rb b/404.rb
new file mode 100755
index 0000000..0ef4065
--- /dev/null
+++ b/404.rb
@@ -0,0 +1,20 @@
+# encoding: utf-8
+def error404_tpe(page_actuelle,dest_page)
+
+ puts <<HTML_TPE
+Status: 404 Not Found
+
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Erreur 404 : Page introuvable - #{$Titre}</title>
+ <meta http-equiv="refresh" content="0;URL='#{$RepBase}/#{dest_page}'">
+ </head>
+ <body>
+ <h1>404 Not Found - Redirection</h1>
+ <h2>Page introuvable</h2>
+ </body>
+</html>
+HTML_TPE
+
+end