[wp-trac] [WordPress Trac] #24963: IIS Multisite, Suspected bug in web.config code for URL Rewrite (404 wp-login)

WordPress Trac noreply at wordpress.org
Fri Oct 6 14:54:38 UTC 2017


#24963: IIS Multisite, Suspected bug in web.config code for URL Rewrite (404 wp-
login)
----------------------------+-----------------------------
 Reporter:  ShaunLeeClarke  |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Future Release
Component:  Rewrite Rules   |     Version:  3.5
 Severity:  normal          |  Resolution:
 Keywords:  needs-testing   |     Focuses:  multisite
----------------------------+-----------------------------

Comment (by wordpresssamurai):

 This worked for me. Thank you for the fix, I wasted hours of my life!

 Replace web.config with this:


  <rule name="WordPress Rule 4" stopProcessing="true">
                 <match url="^([_0-9a-
 zA-Z-]+/)?(wp-(content|admin|includes).*)" ignoreCase="false" />
                 <action type="Rewrite" url="{R:2}" />
             </rule>
             <rule name="WordPress Rule 5" stopProcessing="true">
                 <match url="^([_0-9a-zA-Z-]+/)?([_0-9a-
 zA-Z-]+/)?(.*\.php)$" ignoreCase="false" />
                 <action type="Rewrite" url="{R:3}" />
             </rule>

--
Ticket URL: <https://core.trac.wordpress.org/ticket/24963#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list