Use wordpress for the root directory and zblog for the subdirectories, you need to merge web.config.

You need to merge web.config with wordpress for the root directory and zblog for the subdirectories, here is the code:

The root directory is wordpress, and subproject zblog needs to merge web.config, the following is the code:

<?xml version=”1.0″ encoding=”UTF-8″?>

<configuration>

  <system.webServer>

    <rewrite>

      <rules>

        <!– /blog/ Z-BlogPHP Imported Rule –>

        <rule name=”/blog/ Z-BlogPHP Imported Rule” stopProcessing=”true”>

          <match url=”^blog/.*” ignoreCase=”false” />

          <conditions logicalGrouping=”MatchAll”>

            <add input=”{REQUEST_FILENAME}” matchType=”IsFile” negate=”true” />

            <add input=”{REQUEST_FILENAME}” matchType=”IsDirectory” negate=”true” />

          </conditions>

          <action type=”Rewrite” url=”blog/index.php/{R:0}” />

        </rule>

 

        <!– /blog/ Z-BlogPHP Imported Rule index.php –>

        <rule name=”/blog/ Z-BlogPHP Imported Rule index.php” stopProcessing=”true”>

          <match url=”^blog/index.php/.*” ignoreCase=”false” />

          <conditions logicalGrouping=”MatchAll”>

            <add input=”{REQUEST_FILENAME}” matchType=”IsFile” />

          </conditions>

          <action type=”Rewrite” url=”blog/index.php/{R:0}” />

        </rule>

 

        <!– WordPress Rule –>

        <rule name=”WordPress: https://jincan.net” patternSyntax=”Wildcard”>

          <match url=”*”/>

          <conditions>

            <add input=”{REQUEST_FILENAME}” matchType=”IsFile” negate=”true”/>

            <add input=”{REQUEST_FILENAME}” matchType=”IsDirectory” negate=”true”/>

          </conditions>

          <action type=”Rewrite” url=”index.php”/>

        </rule>

      </rules>

    </rewrite>

  </system.webServer>

</configuration>

 

Resolved: DeepL translated word document cannot be edited
Next » 02/21/2019 14:22
en_USEnglish