別のサイトをサーバーに移動しましたが、URL 書き換えルールが機能しませんでした。そこで、iis.net から URL Rewrite 2.0 をインストールしましたが、うまくいきませんでした。
IIS マネージャーからサイトを選択すると、URL 書き換えアイコンが表示されますが、記録がありません。
ルールを web.config から URL 書き換えセクションに 1 つずつ移動したくありません。
これが web.config ファイルの内容です。
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<configSections>
...
<section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter" requirePermission="false" />
</configSections>
<RewriterConfig>
<Rules>
<!-- TR -->
<RewriterRule>
<LookFor>~/Sayfalar/Kategoriler/(.*)/(.*)/(.*).aspx</LookFor>
<SendTo>~/Product.aspx?ParentRawUrl=$2&RawUrl=$3&ID=$1&Lang=0</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Sayfalar/Kategoriler/(.*)/(.*).aspx</LookFor>
<SendTo>~/Product.aspx?RawUrl=$2&ID=$1&Lang=0</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Sayfalar/(.*)/(.*)/(.*).aspx</LookFor>
<SendTo>~/Page.aspx?ParentRawUrl=$2&RawUrl=$3&ID=$1&Lang=0</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Sayfalar/(.*)/(.*).aspx</LookFor>
<SendTo>~/Page.aspx?RawUrl=$2&ID=$1&Lang=0</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Kategoriler/(.*)/(.*).aspx</LookFor>
<SendTo>~/Product.aspx?ID=2&CategoryID=$1&Lang=0</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Urunler/(.*)/(.*)/(.*).aspx</LookFor>
<SendTo>~/Product.aspx?ID=2&ProductID=$1&Lang=0</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Haberler/(.*)/(.*).aspx</LookFor>
<SendTo>~/Page.aspx?RawUrl=$2&ID=30&NewsID=$1&Lang=0</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Tarifler/(.*)/(.*).aspx</LookFor>
<SendTo>~/Page.aspx?RawUrl=$2&ID=22&RecipeID=$1&Lang=0</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Sizin-Tarifiniz/(.*)/(.*).aspx</LookFor>
<SendTo>~/Page.aspx?RawUrl=$2&ID=21&YourRecipeID=$1&Lang=0</SendTo>
</RewriterRule>
<!-- // TR -->
<!-- AR -->
<RewriterRule>
<LookFor>~/Arabic.aspx</LookFor>
<SendTo>~/Default.aspx?Lang=1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Sfhat/Al-Fiat/(.*)/(.*)/(.*).aspx</LookFor>
<SendTo>~/Product.aspx?ParentRawUrl=$2&RawUrl=$3&ID=$1&Lang=1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Sfhat/Al-Fiat/(.*)/(.*).aspx</LookFor>
<SendTo>~/Product.aspx?RawUrl=$2&ID=$1&Lang=1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Sfhat/(.*)/(.*)/(.*).aspx</LookFor>
<SendTo>~/Page.aspx?ParentRawUrl=$2&RawUrl=$3&ID=$1&Lang=1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Sfhat/(.*)/(.*).aspx</LookFor>
<SendTo>~/Page.aspx?RawUrl=$2&ID=$1&Lang=1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Al-Fiat/(.*)/(.*).aspx</LookFor>
<SendTo>~/Product.aspx?ID=59&CategoryID=$1&Lang=1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Al-Mntjat/(.*)/(.*)/(.*).aspx</LookFor>
<SendTo>~/Product.aspx?ID=59&ProductID=$1&Lang=1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Khbar/(.*)/(.*).aspx</LookFor>
<SendTo>~/Page.aspx?RawUrl=$2&ID=58&NewsID=$1&Lang=1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Wsfat/(.*)/(.*).aspx</LookFor>
<SendTo>~/Page.aspx?RawUrl=$2&ID=63&RecipeID=$1&Lang=1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Ldyk-Wşfh/(.*)/(.*).aspx</LookFor>
<SendTo>~/Page.aspx?RawUrl=$2&ID=62&YourRecipeID=$1&Lang=1</SendTo>
</RewriterRule>
<!-- // AR -->
<!-- // ENG -->
<RewriterRule>
<LookFor>~/English.aspx</LookFor>
<SendTo>~/Default.aspx?Lang=2</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Pages/Categories/(.*)/(.*)/(.*).aspx</LookFor>
<SendTo>~/Product.aspx?ParentRawUrl=$2&RawUrl=$3&ID=$1&Lang=2</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Pages/Categories/(.*)/(.*).aspx</LookFor>
<SendTo>~/Product.aspx?RawUrl=$2&ID=$1&Lang=2</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Pages/(.*)/(.*)/(.*).aspx</LookFor>
<SendTo>~/Page.aspx?ParentRawUrl=$2&RawUrl=$3&ID=$1&Lang=2</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Pages/(.*)/(.*).aspx</LookFor>
<SendTo>~/Page.aspx?RawUrl=$2&ID=$1&Lang=2</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Categories/(.*)/(.*).aspx</LookFor>
<SendTo>~/Product.aspx?ID=111&CategoryID=$1&Lang=2</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Product/(.*)/(.*)/(.*).aspx</LookFor>
<SendTo>~/Product.aspx?ID=111&ProductID=$1&Lang=2</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/News/(.*)/(.*).aspx</LookFor>
<SendTo>~/Page.aspx?RawUrl=$2&ID=30&NewsID=$1&Lang=2</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Recipes/(.*)/(.*).aspx</LookFor>
<SendTo>~/Page.aspx?RawUrl=$2&ID=118&RecipeID=$1&Lang=2</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Your-Recipes/(.*)/(.*).aspx</LookFor>
<SendTo>~/Page.aspx?RawUrl=$2&ID=119&YourRecipeID=$1&Lang=2</SendTo>
</RewriterRule>
<!-- // ENG -->
</Rules>
</RewriterConfig>
<system.web>
...
</system.web>
...
<system.webServer>
...
</system.webServer>
...
</configuration>
私は何をすべきか ?