Azure CDN Rule Engine
Asked Answered
L

2

8

I host and html site in Azure CDN (under a with Premier paid Plan) so it gives me a Rules engine, which gives a lots of features to control the flow. I would like to have URL redirect and URL rewrite Azure CDN rules, please.

Example:

Given a site like www.example.com on which users can access see info as www.example.com/username, I've setup the following rules in IIS:

<rule name="rulex" enabled="true" stopProcessing="true">
  <match url="." ignoreCase="false" />
    <conditions logicalGrouping="MatchAll">
       <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
       <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
   </conditions>
   <action type="Rewrite" url="/index.html" />
</rule>

So, how I can set the same rule in Azure CDN please? Is this possible? Any links to examples would be greatly appreciated :)

Lacombe answered 8/6, 2017 at 11:8 Comment(0)
C
0

The following official documentation from microsoft docs explains the same

Crenel answered 8/11, 2019 at 6:7 Comment(0)
T
-3

Azure CDN does not support URL Rewriting. It simply caches the URL requested (according to any query string or header caching rules set) and returns the cached response for subsequent requests for the same URL.

Trotter answered 26/6, 2018 at 20:27 Comment(1)
OP clearly said " Azure CDN (under a with Premier paid Plan) so it gives me a Rules engine" so it does allow URL Rewriting and Redirect. Azure CDN with Verizon P1 plan does allow URL Rewriting.Perni

© 2022 - 2024 — McMap. All rights reserved.