I have a frontend website configured in Azure Blob storage, following the next article:
https://docs.microsoft.com/en-us/azure/cdn/cdn-map-content-to-custom-domain
I successfully configure this website to display with my custom domain:
I'm looking now how to configure proper 301 redirections for:
- http -> 301 -> https
- example.com -> 301 -> www.example.com
I read this section: https://www.itinsights.org/Static-Websites-with-Azure-Part-4/#HTTP-to-HTTPs-redirection
But from my azure portal I don't see any section where I can push this xml rule or how to configure redirection rules from the interface.
<rule id="1111111" platform="http-large" status="active" version="0" custid="XXXXX">
<description>HTTP to HTTPS</description>
<match.request-scheme value="http">
feature.url-redirect code="301" pattern="/XXXXXXX/staticwebsitede/(.*)" value="https://www.staticwebsite.de/$1" />
</match.request-scheme>
</rule>
Edit Following the accepted answer I have contacted Azure support to see if a migration is possible. For the redirection example.com to www.example.com I have used the web forwarding feature of my domain register.