Merge pull request #62 from ONLYOFFICE/feature/rewrite_rules_for_integration

Feature/rewrite rules for integration
This commit is contained in:
Svetlana Maleeva 2023-11-29 16:15:56 +03:00 committed by GitHub
commit debd6e01c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 1 deletions

View File

@ -45,6 +45,9 @@ pipeline {
if ( $Env:JOB_NAME -eq "production.helpcenter.onlyoffice.com.pl") {
(get-content publish.proj) | %{$_ -replace 'Updateable="true"', 'Updateable="false"'} | set-content publish.proj
}
if ( $Env:JOB_NAME -eq "production.helpcenter.onlyoffice.com.pl") {
(Get-Content "Web\\web.config" -Raw) -replace '(?ms)<rule name="redirect-test-helpcenternew-[^>]+>.*?</rule>\r?\n*', '' | Set-Content "Web\\web.config"
}
'''
bat '''
echo " == Build == "

View File

@ -2188,7 +2188,30 @@
<match url="userguides/groups-guides-documents-forms.aspx" />
<action type="Redirect" url="userguides/groups-guides-documents-share-documents.aspx" />
</rule>
</rules>
<rule name="redirect-test-helpcenternew-1">
<match url="^integration.aspx" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="https://test-helpcenter.onlyoffice.com/integration/" />
</rule>
<rule name="redirect-test-helpcenternew-2" stopProcessing="false">
<match url="^integration(.*)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="https://testnew-helpcenter.onlyoffice.com/{R:0}" />
</rule>
<rule name="redirect-test-helpcenternew-3" stopProcessing="true">
<match url="^_next(.*)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="https://testnew-helpcenter.onlyoffice.com/{R:0}" />
</rule>
<rule name="redirect-test-helpcenternew-4">
<match url="^de/integration(.*)" />
<action type="Rewrite" url="https://testnew-helpcenter.onlyoffice.com/{R:0}" />
</rule>
<rule name="redirect-test-helpcenternew-5">
<match url="^fr/integration(.*)" />
<action type="Rewrite" url="https://testnew-helpcenter.onlyoffice.com/{R:0}" />
</rule>
</rules>
</rewrite>
<security>
<requestFiltering>