Skip to content

Commit

Permalink
Merge pull request #122 from silverstripe/hotfix/doc-redirect
Browse files Browse the repository at this point in the history
FIX Redirect older legacy links to the canonical docs.silverstripe.org
  • Loading branch information
assertchris committed Feb 24, 2016
2 parents 5a8dcf0 + 58d0f93 commit 87e74c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 87e74c1

Please sign in to comment.