FIX Redirect older legacy links to the canonical docs.silverstripe.org

This commit is contained in:
Cam Findlay 2016-02-25 11:41:42 +13:00
parent 5a8dcf022b
commit 58d0f937ed
1 changed files with 2 additions and 2 deletions

View File

@ -29,8 +29,8 @@ ErrorDocument 500 /assets/error-500.html
<IfModule mod_rewrite.c>
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