• Resolved MISTER FABULOUS

    (@mister-fabulous)


    I have my multisite setup and everything appears to be working.
    I tryed installing this 3 times with the same results

    The main site loads just fine and I am able to create subsites and they show up in the dashboard. The problem is that when I try to access the subsite or its dashboard it gives me a 404 (not a WP themed 404).

    i am self hosting on an iis webserver

    I checked the file directory and no directory for the Sub-directories is created at all.

    I have verified that my web.config & wp-config.php are correct

    What am I missing?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter MISTER FABULOUS

    (@mister-fabulous)

    This might not work but it worked for my site.

    In your .htaccess file make sure there are NO spaces!

    It should look like this:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    hope that works!!

    Thread Starter MISTER FABULOUS

    (@mister-fabulous)

    I am on a Microsoft IIS server and we do not have .htaccess files. we have web.cofig files and I do not know how to do a conversion from the .htaccess code to the web.cofig code. here is my web.cofig file:

    <?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="^([_0-9a-zA-Z-]+/)?wp-admin$" ignoreCase="false" />
                        <action type="Redirect" url="{R:1}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:1}" />
                    </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:2}" />
                    </rule>
                    <rule name="WordPress Rule 6" stopProcessing="true">
                        <match url="." ignoreCase="false" />
                        <action type="Rewrite" url="index.php" />
                    </rule>
                </rules>
            </rewrite>
        </system.webServer>
    </configuration>
    Thread Starter MISTER FABULOUS

    (@mister-fabulous)

    Here is my Web.config code for the multisite

    define( 'WP_ALLOW_MULTISITE', true );
    
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', 'mysite.net');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);
    Thread Starter MISTER FABULOUS

    (@mister-fabulous)

    eh

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Sub-directories Multisite giving 404’ is closed to new replies.