From b1f2601f123582b107b1b51bf26c5e8256c90f91 Mon Sep 17 00:00:00 2001 From: Cam Findlay Date: Mon, 21 Dec 2015 09:50:22 +1300 Subject: [PATCH] FIX Don't redirect older reference section to developer guides and other minor rewrite corrections. --- .htaccess | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.htaccess b/.htaccess index 520feeeeb..cbc8cf763 100644 --- a/.htaccess +++ b/.htaccess @@ -70,6 +70,7 @@ RewriteRule ^(.*)/howto/simple-contact-form/?$ /$1/developer_guides/forms/how_tos/simple_contact_form [R=301,L] RewriteRule ^en/installation/?$ /en/getting_started/installation [R=301,L] + RewriteCond %{REQUEST_URI} !(3.0|2.4) RewriteRule ^(.*)/installation/common-problems/?$ /$1/getting_started/installation/common_problems [R=301,L] # @@ -121,17 +122,20 @@ RewriteCond %{REQUEST_URI} !(3.0|2.4) RewriteRule ^(.*)/misc/release-process/?$ /$1/contributing/release_process [R=301,L] # - RewriteCond %{REQUEST_URI} !en/2.4/topics/reference/requirements + RewriteCond %{REQUEST_URI} !(3.0|2.4) RewriteRule ^(.*)/reference/?$ /$1/developer_guides [R=301,L] + + RewriteCond %{REQUEST_URI} !en/2.4/topics/reference/requirements RewriteRule ^en/2.4/topics/reference/requirements/?$ /en/2.4/reference/requirements [R=301,L] # RewriteCond %{REQUEST_URI} !(3.0|2.4) RewriteRule ^(.*)/reference/aspects/?$ /$1/developer_guides/extending/aspects [R=301,L] # - RewriteCond %{REQUEST_URI} !en/developer_guides/customising_the_admin_interface/reference/cms-architecture RewriteCond %{REQUEST_URI} !(3.0|2.4) RewriteRule ^(.*)/reference/cms-architecture/?$ /$1/developer_guides/customising_the_admin_interface/cms_architecture [R=301,L] + + RewriteCond %{REQUEST_URI} !en/developer_guides/customising_the_admin_interface/reference/cms-architecture RewriteRule ^en/developer_guides/customising_the_admin_interface/reference/cms-architecture/?$ /en/developer_guides/customising_the_admin_interface/cms_architecture [R=301,L] # RewriteCond %{REQUEST_URI} !(3.0|2.4)