Skip to content

Commit

Permalink
FIX Redirect older legacy links to the canonical docs.silverstripe.org
Browse files Browse the repository at this point in the history
  • Loading branch information
camfindlay committed Feb 24, 2016
1 parent 5a8dcf0 commit 58d0f93
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 58d0f93

Please sign in to comment.