From 6ba3a774fd6bbd0aa2043a4a7895118ab3acdfa6 Mon Sep 17 00:00:00 2001 From: Don Naro Date: Wed, 20 Nov 2024 16:59:08 +0000 Subject: [PATCH] Update .htaccess --- .htaccess | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.htaccess b/.htaccess index 44cda57..cfb73f2 100644 --- a/.htaccess +++ b/.htaccess @@ -18,8 +18,11 @@ RedirectMatch permanent "^/((?!index|404|automation.*|ansible_community|collecti # Redirect plugin and module pages for devel and latest RedirectMatch permanent "^/ansible/(devel|latest)/(plugins|modules)/(.+)\.html$" "https://docs.ansible.com/collections.html" -# Redirect plugin and module pages for versions 2.3 to 2.6 and 2.10 -RedirectMatch permanent "^/ansible/(2\.[3-6])/(plugins|modules)/(.+)\.html$" "https://docs.ansible.com/collections.html" +# Redirect plugin and module pages for versions 2.3 and 2.4 +RedirectMatch permanent "^/ansible/(2\.[3-4])/(.+)\.html$" "https://docs.ansible.com/collections.html" + +# Redirect plugin and module pages for versions 2.5 and 2.6 +RedirectMatch permanent "^/ansible/(2\.[5-6])/(plugins|modules)/(.+)\.html$" "https://docs.ansible.com/collections.html" # Vault redirects (2.3, 2.4, 2.5, 2.6) RedirectMatch permanent "^/ansible/(2\.(5|6))/user_guide/playbooks_vault.html" "/ansible/latest/vault_guide/index.html"