Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add redirects for all of automation-controller docs to their respective index page #240

Open
tvo318 opened this issue Apr 17, 2024 · 2 comments
Assignees

Comments

@tvo318
Copy link
Member

tvo318 commented Apr 17, 2024

We deleted all the source files from the product-docs in 4.5 except for the index.rst for each guide:

Users might still have bookmarks to individual chapters like https://docs.ansible.com/automation-controller/4.5/html/userguide/organizations.html. These chapters need to have redirects to the main guide's index file so readers can determine how to look for the latest information.

Example source for the userguide for 4.5: https://github.com/ansible/product-docs/tree/release_4.5/userguide/source
There should be no artifacts for any other chapters but the index.html file.

Source for redirects: https://github.com/ansible/docsite/blob/main/.htaccess
Test redirects at: https://htaccess.madewithlove.com/

@tvo318 tvo318 self-assigned this Apr 17, 2024
@oraNod
Copy link
Collaborator

oraNod commented Apr 18, 2024

@tvo318 This redirect rule seems to work:

RedirectMatch permanent "automation-controller/latest/html/administration/(.*)$" "automation-controller/latest/html/administration/index.html"

You can test that here: https://htaccess.madewithlove.com/

Try filling in a {4.5, latest} url that should be redirected, such as https://docs.ansible.com/automation-controller/latest/html/administration/license-support.html

@oraNod
Copy link
Collaborator

oraNod commented Apr 18, 2024

@tvo318 Do you think this overlaps or resolves #184 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants