Skip to content

Commit

Permalink
Update .htaccess
Browse files Browse the repository at this point in the history
  • Loading branch information
oraNod committed Nov 20, 2024
1 parent fce0d28 commit 6ba3a77
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6ba3a77

Please sign in to comment.