Getting 404 issue with multisite sub directory

Hi

I have created a multi site with sub directory. The main site works but all the sub sites doesnt take the styles and when i try to access the admin area it shows 404 issue.

The site is in Windows server. Please let me know what is the issue.

http://fcms.grandreves.com/st-francis/

This is one of the sample site main site is

http://fcms.grandreves.com/

  • Ash
    • Code Norris

    Hello there

    Welcome to WPMU community!

    I hope you are well today and thanks for asking the question.

    Would you please try adding these lines in your wp-config.php?

    define('ADMIN_COOKIE_PATH', '/');
    define('COOKIE_DOMAIN', '');
    define('COOKIEPATH', '');
    define('SITECOOKIEPATH', '');

    Please let me know if it is helpful and feel free to ask more question if you have.

    Cheers

    Ash

  • bmoore9351
    • New Recruit

    Hi Ashok

    I have added the line you mentioned in my wp-config file.But still having that issue.And also when try to access admin side shows 404

    Here is my wp-config file.

    `define(‘WP_DEBUG’, false);

    define(‘MULTISITE’, true);

    define(‘SUBDOMAIN_INSTALL’, false);

    define(‘DOMAIN_CURRENT_SITE’, ‘fcms.grandreves.com’:wink:;

    define(‘PATH_CURRENT_SITE’, ‘/’:wink:;

    define(‘SITE_ID_CURRENT_SITE’, 1);

    define(‘BLOG_ID_CURRENT_SITE’, 1);

    define(‘ADMIN_COOKIE_PATH’, ‘/’:wink:;

    define(‘COOKIE_DOMAIN’, ”:wink:;

    define(‘COOKIEPATH’, ”:wink:;

    define(‘SITECOOKIEPATH’, ”:wink:;

    NB :smiley:b details also there but not provided here

  • bmoore9351
    • New Recruit

    Hi

    Yes sure

    `<?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>

    here it is.

  • Ash
    • Code Norris

    Use this one instead:

    <?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-]+/)?files/(.+)" ignoreCase="false" />
    <action type="Rewrite" url="wp-includes/ms-files.php?file={R:2}" appendQueryString="false" />
    </rule>
    <rule name="WordPress Rule 3" 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 4" 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 5" 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 6" stopProcessing="true">
    <match url="^([_0-9a-zA-Z-]+/)?(.*.php)$" ignoreCase="false" />
    <action type="Rewrite" url="{R:2}" />
    </rule>
    <rule name="WordPress Rule 7" stopProcessing="true">
    <match url="." ignoreCase="false" />
    <action type="Rewrite" url="index.php" />
    </rule>
    </rules>
    </rewrite>
    </system.webServer>
    </configuration>

    Make sure you kept a backup of older one.