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:
commit
87e74c1b93
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue