本文介绍了我得到404而不是403.4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试将http://重定向到https://
使用此代码
I am trying to redirect http:// to https://
with this code
<rewrite>
<rewritemaps>
<rewritemap name="httptohttps" />
</rewritemaps>
<rules>
<rule name="http to https" stopprocessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="^OFF$" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirecttype="Found" />
</rule>
</rules>
</rewrite>
但不是403.4;我得到404(找不到页面);
but instead of 403.4; i am getting 404(Page not found);
推荐答案
但不是403.4;我得到404(找不到页面);
but instead of 403.4; i am getting 404(Page not found);
这篇关于我得到404而不是403.4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!