diff --git a/.htaccess b/.htaccess index cfb73f2..f0e1574 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 and 2.4 -RedirectMatch permanent "^/ansible/(2\.[3-4])/(.+)\.html$" "https://docs.ansible.com/collections.html" +# Redirect plugin pages for versions 2.3 and 2.4 +RedirectMatch permanent "^/ansible/(2\.[3-4])/plugins/(.+)\.html$" "https://docs.ansible.com/collections.html" + +# Redirect module pages for versions 2.3 and 2.4 +RedirectMatch permanent "^/ansible/(2\.[3-4])/([^_]+)_module\.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"