Php 将Htaccess转换为Wordpress的Web访问

Php 将Htaccess转换为Wordpress的Web访问,php,wordpress,.htaccess,Php,Wordpress,.htaccess,我运行Apache时使用的是我在下面提到的.htaccess规则。我已经将Wordpress转换为Windows Server,现在我想将我的htaccess转换为Web.config。有人可以这样做吗 RewriteEngine On <IfModule mod_rewrite.c> RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUE

我运行Apache时使用的是我在下面提到的.htaccess规则。我已经将Wordpress转换为Windows Server,现在我想将我的htaccess转换为Web.config。有人可以这样做吗

RewriteEngine On
<IfModule mod_rewrite.c>
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
RewriteCond %{HTTP_HOST} (^|\.)kowalski\.com$
RewriteRule ^ http://www..com/ [L,R=301]

RewriteCond %{HTTP_USER_AGENT} ^rogerbot [OR]
RewriteCond %{HTTP_USER_AGENT} ^dotbot [OR]
RewriteCond %{HTTP_USER_AGENT} ^gigabot [OR]
RewriteCond %{HTTP_USER_AGENT} ^SiteBot
RewriteRule .* - [F]

RewriteCond %{HTTP_COOKIE} !^.*37f298cd809513afc7fbca54ca626089.*$
RewriteRule ^fffsd-cs-post.php - [F,L]
重新编写引擎打开
重写基/
重写规则^index\.php$-[L]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则/index.php[L]
重写cond%{HTTP|u HOST}(^ | \.)kowalski\.com$
重写规则^http://www..com/ [L,R=301]
RewriteCond%{HTTP\u USER\u AGENT}^rogerbot[或]
RewriteCond%{HTTP\u USER\u AGENT}^dotbot[或]
重写COND%{HTTP_用户_代理}^gigabot[或]
重写COND%{HTTP_用户_代理}^SiteBot
重写规则。*-[F]
重写cond%{HTTP_COOKIE}!^*37f298cd809513afc7fbca54ca626089*$
重写规则^fffsd-cs-post.php-[F,L]

谷歌似乎为我工作,享受吧

<rule name="rule 1q" stopProcessing="true">
    <match url="^index\.php$"  />
    <action type="Rewrite" url="/-"  />
</rule>
<rule name="rule 2q" stopProcessing="true">
    <match url="."  />
    <action type="Rewrite" url="//index.php"  />
</rule>
<rule name="rule 3q" stopProcessing="true">
    <match url="^"  />
    <action type="Rewrite" url="/http://www..com/"  />
</rule>
<rule name="rule 4q">
    <match url=".*"  />
    <action type="Rewrite" url="/-"  />
</rule>
<rule name="rule 5q" stopProcessing="true">
    <match url="^fffsd-cs-post.php"  />
    <action type="Rewrite" url="/-"  />
</rule>


你到底做了什么?是的,谷歌没能修复:到目前为止你到底做了什么?