WordPress.org

Forums

Multisite on IIS Network admin links wrong (7 posts)

  1. joekewl
    Member
    Posted 1 year ago #

    I have set up WordPress on a Windows 2008 R2 server and configured multisite. It is set to use sub directories for child sites. The install of wordpress is in a subdirectory off of the default IIS site but I configured it to be available at the root via:
    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

    I did that before activating multisite per:
    http://codex.wordpress.org/Create_A_Network

    The site is blog.company.com. All admin links for the top level site work. When I navigate to the My Sites in the top menu the path is correct: blog.company.com/company/wp-admin/my-sites.php but everything below that in the Network Admin section is wrong. That path is: blog.company.com/wp-admin/network/

    I cant even manually enter the correct url because even the action buttons have the wrong URL. i.e. If I navigate to blog.company.com/company/wp-admin/network/site-new.php when I hover on the Add Site button the link is the wrong one so I cant add sites.

    Any help is appreciated!

  2. jkhongusc
    Member
    Posted 1 year ago #

    What is your htaccess and wp-config.php look like. Most likely a misconfiguration in there.

  3. It's not wrong. In so far as WP cares, domain.com/blogfolder/wp-admin and domain.com/wp-admin are the same for Multisite in a subfolder.

    But yes, what's your web.conf look like (if you don't have .htaccess) and what's the Multisite section of wp-config look like?

  4. joekewl
    Member
    Posted 1 year ago #

    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="^([_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="company/{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="company/{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>

    and wp-config

    define('WP_DEBUG', false);
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', 'blog.company.com');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

    The result being when I click on the network links in My Sites it returns "HTTP Error 403.18 - Forbidden."

  5. DO NOT EVER EVER POST YOUR DB CREDENTIALS IN A PUBLIC PLACE! YOU MUST GO CHANGE THEM NOW! DO NOT STOP TO ASK WHY JUST DO IT.

    Done? Okay. NEVER post those, EVER. If anyone asks you for them, tell them no. I deleted the PRIVATE information from you post. *huff* That's specifically why I asked you for the "Multisite section" - NOT the whole thing.

    You're missing a line in your wp-config section.

    define( 'WP_ALLOW_MULTISITE', true );
  6. joekewl
    Member
    Posted 1 year ago #

    I meant to change them before posting. I already made the change on the server. They were going to be changed anyway since they were not very strong. Thanks for removing it though.

    That entry was actually up a few lines up.

  7. Okay, it's a common enough mistake, that I never want to see anyone get in the habit of "Oh, I'll just replace it later" or see you do it and think it's okay :) Good security starts with you!

    I'm not AS familiar with the web.conf file. Does that match what you see in http://multisite.dev/wp-admin/network/setup.php

    (where multisite.dev is yoru domain...)

Topic Closed

This topic has been closed to new replies.

About this Topic