استخدم WordPress للدليل الجذر وzblog للأدلة الفرعية، ستحتاج إلى دمج web.config.

تحتاج إلى دمج web.config مع Wordpress للدليل الجذر وzblog للأدلة الفرعية، إليك الكود:

الدليل الجذر هو WordPress، ويحتاج المشروع الفرعي zblog إلى دمج web.config، وفيما يلي الكود:

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

 

تم الحل: لا يمكن تحرير مستند Word المترجم من DeepL
المنشور التالي » 02/21/2019 14:22
arArabic