blob: aa69a67602986a59e995957f4ab5df488f23e9b8 [file] [log] [blame]
# Redirect old URL-s to new ones:
RedirectMatch permanent "^/docs/preface\.html$" "/"
RedirectMatch permanent "^/features\.html$" "/"
RedirectMatch permanent "^/whoWeAre\.html$" "/history.html"
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 %{REQUEST_URI} !^/repos/ivy/
RewriteCond %{HTTP_HOST} ^(www\.)?freemarker\.org$ [NC,OR]
RewriteCond %{HTTP_HOST} ^freemarker\.incubator\. [NC,OR]
RewriteCond %{HTTPS} ^off$ [NC]
RewriteRule ^(.*)$ https://freemarker.apache.org/$1 [R=301,L]