kubernetes / kubernetes/website
Replace docs.microsoft.com links with learn.microsoft.com to avoid redirect (301)
- Dominant language
- HTML
- Stars
- 5.4k
- Forks
- 15.7k
- Avg merge
- 4d 18h
- Merged PRs (30d)
- 204
Description
**This is a Feature Request**
**What would you like to be added**
All `docs.microsoft.com` links in the English Kubernetes website documentation should be updated to `learn.microsoft.com` links.
Currently, many links still point to the old `docs.microsoft.com` domain, but these URLs respond with an HTTP 301 redirect to `learn.microsoft.com`. Updating the links in the source content will make them future-proof and remove unnecessary redirects.
**Why is this needed**
docs.microsoft.com has been deprecated and now redirects to `learn.microsoft.com`.
Keeping outdated links may cause long-term maintenance issues if Microsoft changes their redirect rules.
A quick search shows more than 100 occurrences of `docs.microsoft.com` in the kubernetes/website repository, so a systematic fix is needed.
**Comments**
```bash
$ curl --head https://docs.microsoft.com/virtualization/windowscontainers/manage-containers/container-security
HTTP/2 301
server: AkamaiGHost
content-length: 0
location: https://learn.microsoft.com/virtualization/windowscontainers/manage-containers/container-security
```
Reference search result:
https://cs.k8s.io/?q=docs.microsoft.com&i=nope&literal=nope&files=content%2Fen&excludeFiles=&repos=kubernetes/website
Contributor guide
Assessment
This issue has not been assessed yet.