Azure 如何将htaccess RewriteCond http_cookie重写为web.config替代方案?

Azure 如何将htaccess RewriteCond http_cookie重写为web.config替代方案?,azure,Azure,我很难将下面的RewriteCond重写到web.config中,如果有任何帮助,我将不胜感激 RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in_.*$ 使用IIS 7中的模块,使用条件重写规则如下所示: <rules> <rule name="something"> <match ... /> <conditions> <a

我很难将下面的RewriteCond重写到web.config中,如果有任何帮助,我将不胜感激

RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in_.*$
使用IIS 7中的模块,使用条件重写规则如下所示:

<rules>
    <rule name="something">
        <match ... />
        <conditions>
            <add input="{HTTP_COOKIE}" pattern="^.*wordpress_logged_in_.*$" />
        </conditions>
        <action ... />
    </rule>
</rules>
您还可以在本地IIS 7安装中使用URL重写GUI界面来帮助构建重写规则,然后打开相应的web.config以查看其外观