From 58d0f937edb783b3c05b767f10b34d4380a89b2f Mon Sep 17 00:00:00 2001 From: Cam Findlay Date: Thu, 25 Feb 2016 11:41:42 +1300 Subject: [PATCH] FIX Redirect older legacy links to the canonical docs.silverstripe.org --- .htaccess | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.htaccess b/.htaccess index 5098b6a..3a804d5 100644 --- a/.htaccess +++ b/.htaccess @@ -29,8 +29,8 @@ ErrorDocument 500 /assets/error-500.html RewriteEngine On - RewriteCond %{HTTP_HOST} ^docs?.silverstripe.com$ [NC] - RewriteRule ^(.*)$ https://docs.silverstripe.org/$1 [L,R=301] + RewriteCond %{HTTP_HOST} ^(docs?.silverstripe.com|doc.silverstripe.org|beta.docs.silverstripe.org)$ [NC] + RewriteRule ^(.*)$ https://docs.silverstripe.org/$1 [L,R=301] # Legacy rewrite from sapphire/ to framework/ namespace RewriteCond %{REQUEST_FILENAME} !-f