如果我这样写“https://{HTTP_HOST}/{R:1}”,就会出错,重定向失败!所以必须得这样:“https://{HTTP_HOST}/index.php?s={R:1}”,感觉这样写是不是伪静态已经失效?而且还一直有个尾巴“index.php?s=”
			
				
papala999			
			2019-12-11
		
我的域名开通了https,如果在不改动原有的web.config情况下,访问https://是正常的。
折腾了几天,修改web.config配置,为了http强行跳转https,有个问题一直没解决。
                <rule name="http redirect to https" stopProcessing="true">
                    <match url="(.*)" />
                    <conditions>
                        <add input="{HTTPS}" pattern="^OFF$" />
                  <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                        <add input="{HTTPS_HOST}" pattern="^(localhost)" negate="true" />
                <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                    </conditions>
                    <action type="Redirect" url="https://{HTTP_HOST}/index.php?s={R:1}" />
                </rule>
            </rules>
        </rewrite>
这样修改后,可以强行跳转到https,但是,URL后面一直会有“index.php?s=”这样的尾巴!要如何隐藏?还是说我跳转之后,已经不是伪静态了?