Azure Web App Angular Not redirecting to www

前端 未结 1 1824
眼角桃花
眼角桃花 2021-01-26 07:17

I have the following in my web.config


    
        
      

        
相关标签:
1条回答
  • 2021-01-26 08:21

    UPDATE

    You can RewriterConfig to set url rewrite function in web.config file. More details you can see my answer in anothor post .

    PRIVIOUS

    The Web Server integrated by App Service cannot have full control, which is one of the attributes of PaaS products.

    App Service can only use some functions of IIS. It needs to be configured in the web.config file under /site/wwwroot (that is, the root directory of the project you develop). All available IIS functions can only be configured through the web.config file.

    solution:

    • Try to add redirect rule in the web config file. If it fails, you can only use the rewrite feature of the application gateway.

    • The following are some documents of Application Gateway about rewrite feature for your reference.

    Redirection

    Redirect web traffic

    Troubleshoot--App service issues

    0 讨论(0)
提交回复
热议问题