WordPress.org

Make WordPress Core

Ticket #25106: 25106.2.diff

File 25106.2.diff, 639 bytes (added by nacin, 7 years ago)
  • wp-admin/network.php

     
    409409                // IIS doesn't support RewriteBase, all your RewriteBase are belong to us
    410410                $iis_subdir_match = ltrim( $base, '/' ) . $subdir_match;
    411411                $iis_rewrite_base = ltrim( $base, '/' ) . $rewrite_base;
    412                 $iis_subdir_replacement = $subdomain_install ? '' : '{R:1}';
     412                $iis_subdir_replacement = $subdomain_install ? '/' . ltrim( $iis_rewrite_base, '/' ) : '{R:1}';
    413413
    414414                $web_config_file = '<?xml version="1.0" encoding="UTF-8"?>
    415415<configuration>