projects
/
~bandali
/
bndl.org
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix email on cv
[~bandali/bndl.org]
/
static
/
.htaccess
diff --git
a/static/.htaccess
b/static/.htaccess
index
96c757e
..
0558c36
100644
(file)
--- a/
static/.htaccess
+++ b/
static/.htaccess
@@
-1,9
+1,17
@@
-# www -> no-www
+ErrorDocument 404 /~bandali/404.html
+
+AddCharset utf-8 .bib .org
+AddType text/plain .bib .org
+
+AddType application/atom+xml .atom
+AddType application/rss+xml .rss
+
<IfModule mod_rewrite.c>
<IfModule mod_rewrite.c>
-RewriteEngine On
-RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
-RewriteRule ^ %{REQUEST_SCHEME}://%1%{REQUEST_URI} [R,L]
-</IfModule>
+# since we set Options -MultiViews in ../.htaccess, we now have to
+# explicitly tell apache that files with no extension are actually
+# .html files
+RewriteCond %{REQUEST_FILENAME}.html -f
+RewriteRule !.*\.html$ %{REQUEST_FILENAME}.html [L]
-# custom 404 page
-ErrorDocument 404 /404.html
+RewriteRule ^fsf-internship/intro$ /~bandali/fsf-internship-intro.html [R]
+</IfModule>