ネットワーク ソリューション (今後は NetSol) には、BlogEngine.NET と呼ばれるオープン ソース パッケージがあり、提供されるバージョンは 2.5 です。次のアドレスで私のサーバー上で動作しているのを見ることができます: www.daleallen.net/blog25 インストール先の物理フォルダは、NetSol のコントロール パネルの www\blog25 です。
しかし、 http://blog25.daleallen.netという新しい URL を使用して同じ物理フォルダーを指すように NetSol ポインターを構成すると、ページがすべて台無しに見えます。次に、ハイパーリンクのプロパティを確認すると、http://blog25.daleallen.net/BLOG25が表示 されます。これは、URL の末尾に物理フォルダー名が追加され、ページと画像フォルダーへのパスが台無しになっていることを意味します。 .
NetSol はリダイレクト用の web.config ファイルを作成し、共有ホスティング パッケージのルートにインストールします。Windows 2008 Server で IIS 7 を使用しているとのことです。
リダイレクトされた URL の末尾に物理フォルダーの名前を追加するという間違ったことを誰か教えてもらえますか? 以下の web.config ファイルの内容を参照してください...
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule platformId="wdpVpr" name="blog25.daleallen.net virtual path rewrite" stopProcessing="true">
<match url="^.*$" ignoreCase="false" />
<conditions>
<add input="{HTTP_HOST}" pattern="^blog25\.daleallen\.net$" />
</conditions>
<action type="Rewrite" url="/blog25/{R:0}" appendQueryString="true" />
</rule>
<rule platformId="wdpVpr" name="www.bananapages.net virtual path rewrite" stopProcessing="true">
<match url="^.*$" ignoreCase="false" />
<conditions>
<add input="{HTTP_HOST}" pattern="^www\.bananapages\.net$" />
</conditions>
<action type="Rewrite" url="/bp/{R:0}" appendQueryString="true" />
</rule>
<rule platformId="wdpVpr" name="bananapages.net virtual path rewrite" stopProcessing="true">
<match url="^.*$" ignoreCase="false" />
<conditions>
<add input="{HTTP_HOST}" pattern="^bananapages\.net$" />
</conditions>
<action type="Rewrite" url="/bp/{R:0}" appendQueryString="true" />
</rule>
<rule platformId="wdpVpr" name="blog.daleallen.net virtual path rewrite" stopProcessing="true">
<match url="^.*$" ignoreCase="false" />
<conditions>
<add input="{HTTP_HOST}" pattern="^blog\.daleallen\.net$" />
</conditions>
<action type="Rewrite" url="/blog/{R:0}" appendQueryString="true" />
</rule>
</rules>
<outboundRules>
<rule name="blog25.daleallen.net virtual path rewrite">
<match serverVariable="RESPONSE_LOCATION" pattern="^(https?\://blog25\.daleallen\.net)/blog25/(.+/)$" />
<conditions>
<add input="{RESPONSE_STATUS}" pattern="^301$" ignoreCase="false" />
</conditions>
<action type="Rewrite" value="{R:1}/{R:2}" />
</rule>
<rule name="www.bananapages.net virtual path rewrite">
<match serverVariable="RESPONSE_LOCATION" pattern="^(https?\://www\.bananapages\.net)/bp/(.+/)$" />
<conditions>
<add input="{RESPONSE_STATUS}" pattern="^301$" ignoreCase="false" />
</conditions>
<action type="Rewrite" value="{R:1}/{R:2}" />
</rule>
<rule name="bananapages.net virtual path rewrite">
<match serverVariable="RESPONSE_LOCATION" pattern="^(https?\://bananapages\.net)/bp/(.+/)$" />
<conditions>
<add input="{RESPONSE_STATUS}" pattern="^301$" ignoreCase="false" />
</conditions>
<action type="Rewrite" value="{R:1}/{R:2}" />
</rule>
<rule name="blog.daleallen.net virtual path rewrite">
<match serverVariable="RESPONSE_LOCATION" pattern="^(https?\://blog\.daleallen\.net)/blog/(.+/)$" />
<conditions>
<add input="{RESPONSE_STATUS}" pattern="^301$" ignoreCase="false" />
</conditions>
<action type="Rewrite" value="{R:1}/{R:2}" />
</rule>
</outboundRules>
</rewrite>
</system.webServer>
</configuration>