Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/elixir/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
IIS从HTTP重定向到HTTPS,包括应用程序名称_Iis_Url Rewrite Module - Fatal编程技术网

IIS从HTTP重定向到HTTPS,包括应用程序名称

IIS从HTTP重定向到HTTPS,包括应用程序名称,iis,url-rewrite-module,Iis,Url Rewrite Module,我正在添加一个URL重定向规则,以保留原始查询的方式将用户从HTTP重定向到HTTPS。例如 >> >> 但是,应用程序名称没有包含在重定向中,因此我实际得到的是以下内容 >> 入站规则 IIS结构 地点 默认网站 MyApp 我相信我的重定向url https://{HTTP_HOST}/{R:1}中缺少一个IIS变量,它表示应用程序 是否存在表示可以添加到重定向URL的应用程序级别(MyApp)的IIS变量,或者其他方法?我通过添加URL变量实现了这一点 https://

我正在添加一个URL重定向规则,以保留原始查询的方式将用户从HTTP重定向到HTTPS。例如

>>

>>

但是,应用程序名称没有包含在重定向中,因此我实际得到的是以下内容

>>

入站规则

IIS结构

  • 地点
    • 默认网站
      • MyApp
我相信我的重定向url https://{HTTP_HOST}/{R:1}中缺少一个IIS变量,它表示应用程序


是否存在表示可以添加到重定向URL的应用程序级别(MyApp)的IIS变量,或者其他方法?

我通过添加URL变量实现了这一点

https://{HTTP_HOST}{URL}