summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-09-12 13:51:18 +0200
committerfranck cuny <franck@lumberjaph.net>2010-09-12 13:51:18 +0200
commitc5adcec4110b130fc7392ba0b7d5331ac5b0c05f (patch)
tree70509cc2149afc531812174073bbd879c921c3c3
parenttry again (diff)
downloadlumberjaph-c5adcec4110b130fc7392ba0b7d5331ac5b0c05f.tar.gz
add custom 404
-rw-r--r--.htaccess21
-rw-r--r--404.html7
2 files changed, 20 insertions, 8 deletions
diff --git a/.htaccess b/.htaccess
index 24176b2..2245ebb 100644
--- a/.htaccess
+++ b/.htaccess
@@ -1,11 +1,16 @@
---
layout: nil
---
-RewriteEngine On
-Redirect 301 /blog/index.php/feed/ /index.atom
-Redirect 301 /archives.rss /index.atom
-Redirect 301 /index.rss /index.atom
-Redirect 301 /how-to-use-vim-as-a-personal-wiki.html /app/2008/06/14/how-to-use-vim-as-a-personal-wiki.html
-Redirect 301 /rtgi-recrute--encore-.html /linkfluence/2009/01/18/rtgi-recrute-encore.html
-Redirect 301 /tidify-a-json-in-vim.html /perl/2009/02/17/tidify-a-json-in-vim.html
-Redirect 301 /belgian-perl-workshop-09.html /conference/2009/03/08/belgian-perl-workshop-09.html \ No newline at end of file
+ErrorDocument 404 http://lumberjaph.net/404.html
+<IfModule mod_rewrite.c>
+ RedirectMatch 301 /how-to-use-vim-as-a-personal-wiki.html /app/2008/06/14/how-to-use-vim-as-a-personal-wiki.html
+</IfModule>
+
+#RewriteEngine On
+#Redirect 301 /blog/index.php/feed/ /index.atom
+#Redirect 301 /archives.rss /index.atom
+#Redirect 301 /index.rss /index.atom
+#Redirect 301 /how-to-use-vim-as-a-personal-wiki.html /app/2008/06/14/how-to-use-vim-as-a-personal-wiki.html
+#Redirect 301 /rtgi-recrute--encore-.html /linkfluence/2009/01/18/rtgi-recrute-encore.html
+#Redirect 301 /tidify-a-json-in-vim.html /perl/2009/02/17/tidify-a-json-in-vim.html
+#Redirect 301 /belgian-perl-workshop-09.html /conference/2009/03/08/belgian-perl-workshop-09.html \ No newline at end of file
diff --git a/404.html b/404.html
new file mode 100644
index 0000000..d533d72
--- /dev/null
+++ b/404.html
@@ -0,0 +1,7 @@
+---
+layout: default
+title: Page Not Found!
+---
+<h1>Page Not Found</h1>
+
+<p>Sorry, I seem to have misplaced that page...</p> \ No newline at end of file