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: (Not sure what's wrong... trying to figure out...)
Date Sat, 31 Oct 2015 20:28:57 GMT
Repository: incubator-freemarker-site
Updated Branches:
  refs/heads/asf-site 473e111d6 -> 54055e6e4


(Not sure what's wrong... trying to figure out...)


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/54055e6e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-freemarker-site/tree/54055e6e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-freemarker-site/diff/54055e6e

Branch: refs/heads/asf-site
Commit: 54055e6e444c2f0404f21008972f19bc64fa7256
Parents: 473e111
Author: ddekany <ddekany@apache.org>
Authored: Sat Oct 31 21:28:46 2015 +0100
Committer: ddekany <ddekany@apache.org>
Committed: Sat Oct 31 21:28:46 2015 +0100

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


http://git-wip-us.apache.org/repos/asf/incubator-freemarker-site/blob/54055e6e/.htaccess
----------------------------------------------------------------------
diff --git a/.htaccess b/.htaccess
index 6c2aada..a34a9a5 100644
--- a/.htaccess
+++ b/.htaccess
@@ -6,3 +6,9 @@ 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/"
+
+# Redirect www to non-www:
+RewriteEngine On
+RewriteBase /
+RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
+RewriteRule ^(.*)$ http://%1/$1 [R=301,L]


Mime
View raw message