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 6ba3a77 commit 919b415
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 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"
Expand Down

0 comments on commit 919b415

Please sign in to comment.