-2

所以我插入了一个 SLL 证书,现在在我拥有的 web.config 文件的代码中

代码:

<system.webServer>
        <rewrite>
            <rules>
                <rule name="removed by me" stopProcessing="true">
                    <match url="(.*)" />
                    <conditions>
                        <add input="{HTTPS}" pattern="(^OFF$)" />
                    </conditions>
                    <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="SeeOther" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>

现在这很好用,除了我使用的目录之外的所有目录都是站点/文件夹/根目录(我需要访问的所有文件都设置为)现在使用我去时使用的代码让我们说登录并且我在站点/folder/loginfile 并且我登录后,当它应该是 site/folder/root 时,它会将我带到 site/loginsuccess 文件。

如果您还需要什么,请告诉我!

谢谢!

已编辑-----------

成功登录后我的重定向是:

header("location:http://Site/folder/memberinterface.php");
4

2 回答 2

1

改变

header("location:http://Site/folder/memberinterface.php");

header("location: http://Site/folder/memberinterface.php");
                 ^
                 ^

你没有插入space这会导致问题。

于 2012-09-28T05:10:48.180 回答
0

弄清楚了!

我需要改变

action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="SeeOther" />

<action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}{REQUEST_URI}" /> 

谢谢您的帮助!

于 2012-09-28T05:36:54.697 回答