WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] "Network Admin" menu broken on 3.5.1 (own folder) subdomain multisite install (7 posts)

  1. kja79a
    Member
    Posted 1 year ago #

    I have just setup a fresh WP 3.5.1 installation inside a "ssl" folder, moved the base site url to the root ("giving WP its own directory") and setup a subdomain multi-site network.

    In the wp-admin the "My Sites" menu items for the primary site are working (eg. "[domain]/ssl/wp-admin/post-new.php") however the "Network Admin" menu items are all missing the "/ssl" folder in the links and give a 404 error (eg. "[domain]/wp-admin/network/sites.php")

    By manually adding the /ssl in the address bar I can access the network admin pages, however buttons/forms within the network admin pages still seem to leave out the /ssl subfolder.
    eg. "Add New" plugin button or "network activating/deactivating" any plugins.

    No problems with a root install multisite, only with a subfolder install (which is supposed to work in 3.5?)

    Here are the steps I followed:
    1) http://codex.wordpress.org/Installing_WordPress#Famous_5-Minute_Install
    2) http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory#Using_a_pre-existing_subdirectory_install
    3) http://codex.wordpress.org/Create_A_Network

    Help help/advice is appreciated.

  2. What's in your .htaccess in root? (i.e. /domain/.htaccess)

  3. kja79a
    Member
    Posted 1 year ago #

    Root .htaccess contains the following:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^(wp-(content|admin|includes).*) E:/inetpub/vs239247/ssl/$1 [L]
    RewriteRule ^(.*\.php)$ E:/inetpub/vs239247/ssl/$1 [L]
    RewriteRule . index.php [L]

    This is the exact output that WordPress provided upon enabling the network.

  4. derrick_w
    Member
    Posted 1 year ago #

    On IIS 7.5, wasted a few hours finding this hack.

    - edit wp-includes/link-template.php func network_admin_url(), edit the line

    $url = network_site_url('yourfolder/wp-admin/network/', $scheme);

  5. kja79a
    Member
    Posted 1 year ago #

    Thanks @derrick_w
    Is this problem/bug common to IIS, that we may need to submit a bug report?

  6. derrick_w
    Member
    Posted 1 year ago #

    I have no idea if this is "common" to IIS, but I like to think I just missed something in the hours of reading. I'm an apprentice chicken farmer. Did the hack work for you so far?

    It might save time in future posts if you mention what platform you are on. For example, IIS has no interest in .htaccess files, but will look at web-config files.

  7. kja79a
    Member
    Posted 1 year ago #

    The hack seems to have worked, thanks. My guess is though that it will get overridden in a future WP update.

    However further investigation has found that this is a known bug in the WP core affecting all OS's with the same scenario. (http://core.trac.wordpress.org/ticket/23221)

    So I guess we just wait for an update that resolves this issue.

Topic Closed

This topic has been closed to new replies.

About this Topic