Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
321 views
in Technique[技术] by (71.8m points)

angular - Azure CDN Microsoft标准重写URL角度(Azure CDN Microsoft Standard Rewrite URL Angular)

We try to configure Azure CDN on Microsoft Standard pricing to allow us rewrite Url to route all application routing to ./index.html.

(我们尝试以Microsoft标准价格配置Azure CDN,以允许我们重写Url以将所有应用程序路由路由到./index.html。)

How to setup rules engine to rewrite url but left all js file as it is?

(如何设置规则引擎来重写url,但保留所有js文件不变?)

All examples in google show how to do this on premium pricing but we like to do this on Microsoft Standard it is possible?

(google中的所有示例都显示了如何按溢价执行此操作,但我们希望在Microsoft Standard上执行此操作,这是可能的吗?)

  ask by CrazyBaran translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

If none of your page URLs contain a dot, you can set a rule as follows:

(如果您的页面URL都不包含点,则可以按以下方式设置规则:)

  • Condition: 'URL file extension' = Not Any (ie there is no extension)

    (条件:“ URL文件扩展名” = Not Any (即没有扩展名))

  • Action: 'URL rewrite',

    (行动:“ URL重写”,)

    • source = /

      (来源= /)

    • destination = index.html

      (目的地= index.html)

    • Preserve umatched path = No

      (保留未配对的路径=否)

This will rewrite any URL without a dot in the trailing section to index.html.

(这会将URL尾部没有点的任何URL重写为index.html。)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...