Рабочий файл web.config
Код |
---|
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <directoryBrowse enabled="false" /> <httpErrors> <remove statusCode="404" subStatusCode="-1" /> <error statusCode="404" prefixLanguageFilePath="/" path="404.php" responseMode="File" /> </httpErrors> <rewrite> <rules> <rule name="Imported Rule 2" stopProcessing="true"> <match url="^(.*)$" ignoreCase="false" /> <conditions logicalGrouping="MatchAll"> <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" /> <add input="{REQUEST_FILENAME}" pattern="/bitrix/urlrewrite.php$" ignoreCase="false" negate="true" /> </conditions> <action type="Rewrite" url="/bitrix/urlrewrite.php" /> </rule> <rule name="Redirect to non-www" stopProcessing="true"> <match url="(.*)" negate="false"></match> <action type="Redirect" url="http://stroyarsenal-vrn.ru/{R:1}"></action> <conditions> <add input="{HTTP_HOST}" pattern="^stroyarsenal-vrn\.ru$" negate="true"></add> </conditions> </rule> </rules> </rewrite> </system.webServer> </configuration> |