10
私はIIS 7.5とURLリライトを使用します。IIS 7.5 URLリライト - URLからフォルダを書き換えます。
私はこの方法でファイルの階層構造を持つウェブサイトを持っている:
webroot
webroot/LegacySite
Webrootウェブルートと従来の両方がIISでのApp-フォルダを分離しています。
- を要求がhttp://mysite.co/LegacySite/page.aspx URLは、現時点では、ウェブルートフォルダに私の
Web.Conf
存在下にhttp://mysite.co/page.aspx
に書き換えられますされている場合:私は私のURLを書き換える必要があり
正しく動作しない、あなたが私に何が欠けている私を指摘できますか?
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="MyRole" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^mysite.com" />
<add input="{PATH_INFO}" pattern="^\LegacySite\" negate="true" />
</conditions>
<action type="Rewrite" url="\LegacySite\{R:0}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
お返事ありがとうございます – GibboK