Azure CDN with Verizon - Rewriting URL to always load index.html
- Add a new rule with condition If Always
- You will need to add a new Feature for each endpoint.
- For the Pattern, enter
[^?.]*(\?.*)?$
. This pattern catches URL paths with .
in them, but doesn't care whether or not it's in the query string.
- For the Path, enter
origin_path/document.ext
. This is the tricky part. The Path is relative to the origin root. For instance, if your CDN endpoint's origin path is /origin_path
and you want to redirect to index.html
, you would enter origin_path/index.html
. This will always be the case if your CDN is backed by an Azure Storage Account and the origin points to a container.
- Click Add to add your rule, wait N hours, and you're good to go.