Merge pull request #122 from silverstripe/hotfix/doc-redirect

FIX Redirect older legacy links to the canonical docs.silverstripe.org
This commit is contained in:
Christopher Pitt 2016-02-25 11:45:55 +13:00
commit 87e74c1b93
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