MINOR Redirecting /misc docs to trunk to avoid confusion about outdated non-version-specific information (updated live htaccess...)

git-svn-id: http://svn.silverstripe.com/projects/ss2doc/branches/v2@122180 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2012-02-17 11:18:58 +00:00
parent 7269d24076
commit 88f118a924
1 changed files with 9 additions and 0 deletions

View File

@ -318,6 +318,15 @@
# Legacy rewrite: Can't use 'master' as it confuses api.ss.org linking
RewriteRule ^sapphire/en/master(.*) http://doc.silverstripe.org/sapphire/en/trunk$1 [R=301,L]
# Changelogs are just kept up-to-date on trunk
RewriteRule ^sapphire/en/changelogs(.*) http://doc.silverstripe.org/sapphire/en/trunk/changelogs/$1 [R=301,L]
RewriteRule ^cms/en/changelogs(.*) http://doc.silverstripe.org/cms/en/trunk/changelogs/$1 [R=301,L]
# Anything in sapphire/en/<version>/misc is redirected to trunk, the info in there is usually not version specific,
# and only updated on master (e.g. contribution and coding guidelines)
RewriteRule ^sapphire/en/misc/?(.*) http://doc.silverstripe.org/sapphire/en/trunk/misc/$1 [R=301,L]
RewriteRule ^sapphire/en/[^/]*/misc/?(.*) http://doc.silverstripe.org/sapphire/en/trunk/misc/$1 [R=301,L]
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !\.(css|gif|ico|jpg|js|png|swf|txt)$