私は自分の ISS サーバーで get simple cms を使用しています (実際には ISS を使用する必要があります) web.config
。
web.config ソース:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="GetSimple Fancy URLs" stopProcessing="true">
<match url="^([^/]+)/?$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="?id={R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
/
しかし、次のようなメインフォルダーとサブフォルダーの両方にある私のCMS /en
:
http://domainname.com/ (メインの cms) http://domainname.com/en/ (サブフォルダーの別の cms)
上記のweb.config
場合、メインの cms は正常に機能しますが、サブフォルダーの cms は機能しません (以前のように 404 が返されます)
そのサブフォルダー ルールを に実装するにはどうすればよいweb.config file
ですか? したがって、2cmは正常に機能しています。
同じ web.config ファイルをサブフォルダー ( /en
) の下に配置しようとしましたが、うまくいきませんでした。
どうもありがとう、