Jerome2606
Jerome2606

Reputation: 955

Azure CDN for Azure static website 301 redirection configuration

I have a frontend website configured in Azure Blob storage, following the next article:

https://learn.microsoft.com/en-us/azure/cdn/cdn-map-content-to-custom-domain

I successfully configure this website to display with my custom domain:

https://www.example.com

I'm looking now how to configure proper 301 redirections for:

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.

Upvotes: 2

Views: 2005

Answers (1)

Nancy Xiong
Nancy Xiong

Reputation: 28224

From that blog, you need to choose the Azure CDN with the Premium Verizon tier to have the benefits of the Verizon rules engine.

For more details, you could compare Azure CDN product features. Currently, Azure CDN with Standard Microsoft tier also supports URL redirect/rewrite via using standard rules engine.

Upvotes: 0

Related Questions