Käytä Wordpressiä juurihakemistossa ja zblogia alihakemistoissa, sinun on yhdistettävä 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://www.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>

 

Ratkaistu: DeepL-käännettyä Word-asiakirjaa ei voi muokata
Next » 02/21/2019 14:22
fiFinnish