Utilizza WordPress per la directory radice e zblog per le sottodirectory; devi unire web.config.

Devi unire web.config con wordpress per la directory radice e zblog per le sottodirectory, ecco il codice:

La directory principale è wordpress e il sottoprogetto zblog deve unire web.config, ecco il codice:

<?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: http://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>

 

Risolto: il documento Word tradotto da DeepL non può essere modificato
Post successivo » 02/21/2019 14:22
it_ITItalian