[英]Convert Htaccess to Web for Wordpress
我正在使用定義的 .htaccess 規則運行 Apache 正如我在下面提到的,我已經將我的 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]
谷歌似乎對我有用,享受。
<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>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.