Użyj wordpress dla katalogu głównego i zblog dla podkatalogów, musisz scalić plik web.config.

Musisz połączyć web.config z wordpress dla katalogu głównego i zblog dla podkatalogów. Oto kod:

Katalogiem głównym jest WordPress, a podprojekt zblog musi scalić web.config. Poniżej znajduje się kod:

<?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>

 

Rozwiązano: Nie można edytować dokumentu tekstowego przetłumaczonego przez DeepL
Następny post » 02/21/2019 14:22
pl_PLPolish