Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #56381, comment 1


Ignore:
Timestamp:
08/15/2022 06:57:41 PM (2 years ago)
Author:
liskoslayer63
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #56381, comment 1

    initial v1  
    1 That fixes the image links yeah, but now every other page shows 404 error, so really can't say what is going on.
     1~~That fixes the image links yeah, but now every other page shows 404 error, so really can't say what is going on.~~
     2
     3Finally managed to get it working with this:
     4{{{
     5<?xml version="1.0" encoding="UTF-8"?>
     6<configuration>
     7  <system.webServer>
     8    <rewrite>
     9      <rules>
     10        <rule name="WordPress Rule" patternSyntax="Wildcard" stopProcessing="true">
     11            <match url="*"/>
     12                <conditions>
     13                    <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
     14                    <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
     15                </conditions>
     16            <action type="Rewrite" url="index.php?page_id={R:0}"/>
     17        </rule>
     18        <rule name="wordpress" patternSyntax="Wildcard" stopProcessing="true">
     19            <match url=".*"/>
     20                <conditions>
     21                    <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
     22                    <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
     23                </conditions>
     24            <action type="Rewrite" url="index.php"/>
     25        </rule>
     26      </rules>
     27    </rewrite>
     28  </system.webServer>
     29</configuration>
     30}}}