如何修复:Azure CDN“。字符重定向

时间:2019-07-12 13:14:29

标签: azure single-page-application cdn

我在Azure CDN和Azure Verizon Premium CDN上使用,以为我的单页应用程序提供Blob。但是只要有“。”在url中并尝试在新页面上打开url返回

<Error>
 <Code>BlobNotFound</Code>
 <Message>
  The specified blob does not exist
 </Message>
</Error>

我正在使用此正则表达式重写我的单页应用程序

RequestHeader WildCard
 Source => [^?.]*(\?.*)?$ 
 Destination => "wwwroot/index.html"

我已经将http重定向到https

 Request Scheme HTTP
     URL Redirect
     Source => wwwroot/index.html
     Destination => https://%{host}/$1

我的单页应用程序网址

https://myapp.azureedge.net/pages/74838.23.3

通常在重定向单页应用程序时可以使用。但是,当在新标签页或页面上打开的特定链接刷新时,它就会崩溃

0 个答案:

没有答案