freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ddek...@apache.org
Subject incubator-freemarker-site git commit: Nope, .htaccess still doesn't work. Putting back domain redirections.
Date Mon, 14 Mar 2016 08:53:25 GMT
Repository: incubator-freemarker-site
Updated Branches:
  refs/heads/asf-site feb9e8e53 -> 02174fe64


Nope, .htaccess still doesn't work. Putting back domain redirections.


Project: http://git-wip-us.apache.org/repos/asf/incubator-freemarker-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-freemarker-site/commit/02174fe6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-freemarker-site/tree/02174fe6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-freemarker-site/diff/02174fe6

Branch: refs/heads/asf-site
Commit: 02174fe64f8d353a08c71462447bef2dfd5faa42
Parents: feb9e8e
Author: ddekany <ddekany@apache.org>
Authored: Mon Mar 14 09:53:18 2016 +0100
Committer: ddekany <ddekany@apache.org>
Committed: Mon Mar 14 09:53:18 2016 +0100

----------------------------------------------------------------------
 .htaccess | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-freemarker-site/blob/02174fe6/.htaccess
----------------------------------------------------------------------
diff --git a/.htaccess b/.htaccess
index 6c2aada..59fa3ca 100644
--- a/.htaccess
+++ b/.htaccess
@@ -6,3 +6,11 @@ RedirectMatch permanent "^/fmpp\.html$" "http://fmpp.sourceforge.net/"
 
 # We don't have toc.html ATM, but it might will reappear:
 RedirectMatch temp "^/docs/toc\.html$" "/docs/"
+
+RewriteEngine On
+RewriteBase /
+
+# Redirect to the canonical domain:
+RewriteCond %{HTTP_HOST} ^www.freemarker.org$ [NC,OR]
+RewriteCond %{HTTP_HOST} ^freemarker.incubator.apache.org$ [NC]
+RewriteRule ^(.*)$ http://freemarker.org/$1 [R=301,L]


Mime
View raw message