Skip to content

Commit

Permalink
Adds redirects for controller docs already migrated down/upstream (#241)
Browse files Browse the repository at this point in the history
* Adds redirects for controller docs already migrated down/upstream

* Update .htaccess

* Update .htaccess

* Update .htaccess

---------

Co-authored-by: Don Naro <[email protected]>
  • Loading branch information
tvo318 and oraNod authored Apr 22, 2024
1 parent 53298c9 commit ecec425
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ RedirectMatch permanent "/lint.html" "/ecosystem.html"

RedirectMatch permanent "/automation.html" "/platform.html"

# Redirect the controller-automation pages to their respective index pages

RedirectMatch permanent "automation-controller/(4.5|latest)/html/administration/(?!index\.html)(.*)$" "automation-controller/latest/html/administration/index.html"
RedirectMatch permanent "automation-controller/(4.5|latest)/html/controllerapi/(?!index\.html)(.*)$" "automation-controller/latest/html/controllerapi/index.html"
RedirectMatch permanent "automation-controller/(4.5|latest)/html/quickstart/(?!index\.html)(.*)$" "automation-controller/latest/html/quickstart/index.html"
RedirectMatch permanent "automation-controller/(4.5|latest)/html/towerapi/(?!index\.html)(.*)$" "automation-controller/latest/html/controllerapi/index.html"
RedirectMatch permanent "automation-controller/(4.5|latest)/html/upgrade-migration-guide/(?!index\.html)(.*)$" "automation-controller/latest/html/upgrade-migration-guide/index.html"
RedirectMatch permanent "automation-controller/(4.5|latest)/html/userguide/(?!index\.html)(.*)$" "automation-controller/latest/html/userguide/index.html"

# Redirect so docs.ansible.com/ansible-core/ and docs.ansible.com/ansible/ dont show an Index of page anymore

RedirectMatch permanent "^/ansible-core(|/|/index.html)$" "/ansible-core/devel/"
Expand Down

0 comments on commit ecec425

Please sign in to comment.