• So …

    I am running Windows 2012 R2, IIS7, MySQL 5.7 – got multiple WP sites running all without issue.

    Installed WP 5.1.1 completely clean and got this clean wordpress up and running no probs.

    Added this line to WP-CONFIG

    /* Multisite */
    define('WP_ALLOW_MULTISITE', true);

    All good – was able to set up MultiSite opted for subdomain.

    Added Wildcard DNS into Zone file for the domain set the IP in the wildcard tot the same IP as the domain (parent). All fine so far …

    Added the following to WP-CONFIG

    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', 'www.mortgageslocal.co.uk');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

    and added the following to web.config

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
            <rewrite>
                <rules>
                    <rule name="WordPress Rule 1" stopProcessing="true">
                        <match url="^index\.php$" ignoreCase="false" />
                        <action type="None" />
                    </rule>
                    <rule name="WordPress Rule 2" stopProcessing="true">
                        <match url="^wp-admin$" ignoreCase="false" />
                        <action type="Redirect" url="wp-admin/" redirectType="Permanent" />
                    </rule>
                    <rule name="WordPress Rule 3" stopProcessing="true">
                        <match url="^" ignoreCase="false" />
                        <conditions logicalGrouping="MatchAny">
                            <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" />
                            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" />
                        </conditions>
                        <action type="None" />
                    </rule>
                    <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>
                    <rule name="WordPress Rule 6" stopProcessing="true">
                        <match url="." ignoreCase="false" />
                        <action type="Rewrite" url="index.php" />
                    </rule>
                </rules>
            </rewrite>
        </system.webServer>
    </configuration>

    Logged in to the new ‘network enabled’ site and created a new network site with the subdomain ‘testing’ so url would be

    [ redundant link removed ]

    All created correctly and the new subset is now appearing.

    However …

    When I click VISIT on the new subsite – it takes me to an IIS Holding Screen (you know the default blue one provided for localhost on WinServers).

    If click on DASHBOARD for the new subsite I get a 404 Not Found Error.

    I’ve spent the last 4 hours reading and trying different things. I’ve even scratched the whole installation and the database and started all over again and I get the same issue every time.

    Everything working, its creating the subsite – but it won’t load it (IIS Blue Screen) and it won’t go to the dashboard for that site (404 Error)

    I can get to the NETWORK dashboard and I can get to the PRIMARY SITE dashboard no issues – I can create posts on the PRIMARY SITE etc – but its just the subsites.

    Please help – its driving me nuts!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter vintagegroup

    (@vintagegroup)

    UPDATE …

    If change this line in WP-CONFIG

    define('SUBDOMAIN_INSTALL', true);

    to

    define('SUBDOMAIN_INSTALL', false);

    It works! it creates sites and I can go to them and get to the admin dashboard.

    So it appears its an issue with resolving the subdomain.

    My DNS file for the domain has a wildcard (A) record as required.

    * A 7x.x8.xx.1xx

    (I hid the IP with xxx on purpose for obvious – but the IP is correct.

    So I added a subdomain in the host file called ‘subtest.mortgageslocal.co.uk’ – then I created this as a site in IIS and added a simple test html file in that directory.

    Et Voila! it resolves.

    https://subtest.

    So, there is nothing wrong with my DNS entries it would appear, also IIS working correctly. I have checked and double checked that my entries in WP-CONFIG and WEB.CONFIG (remember its a winsrvr so doesn’t use .htaccess) and all of these are correct.

    Wordpress is creating subsites on directories and these are working fine and its creating subdomain based network sites but i can’t get to the dahsboard or the site – all I get is the LOCALHOST IIS screen like the network site here.

    networksite.

    Please somebody – help! or at least tell what the hell I am doing wrong.

    Thread Starter vintagegroup

    (@vintagegroup)

    AHA! … now this is interesting … and might be the cause …

    When I go into the settings for the subdomain site I have created – it has no THEME applied to it. The master site is using TWENTYNINETEEN.

    I cannot see anywhere if I should be adding a theme to the new network site?

    But that in itself wouldn’t explain why the dashboard isn’t showing.

    Thoughts?

    Thread Starter vintagegroup

    (@vintagegroup)

    Slowly but surely I am unravelling this …

    So – I just added a BINDING in IIS for the subdomain

    testhis.

    and HEY PRESTO! – it worked – I can now get to the subdomain site and its dashboard.

    So it appears that there is no other way on a windows server to get this to work other than create a binding in IIS – so my question is why isn’t the site creation process creating the binding on my server?

    Surely everyone who is using Multisite in a WinSrvr / IIS environment cant be having this issue?

    Suggestions please as to how I can create subdomain network sites without having to add IIS bindings.

    • This reply was modified 5 years, 11 months ago by vintagegroup.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Multisite 404 & IIS Screen’ is closed to new replies.