WordPress.org

Ready to get started?Download WordPress

Forums

Networks for WordPress
subdirectory problem with multisite/networks for wordpress (2 posts)

  1. incredible_sulk
    Member
    Posted 3 years ago #

    I have a fresh install of wordpress multisite, set up to use subdirectories, not subdomains.

    All things like .htaccess are configured, the relevant definitions removed from the wp-config.php file etc etc

    I create a new network with a path of /network/, that works fine. But when I add a site to the network, if I do this from a dashboard outside the intended network and then move the site into the intended network (i.e. the first parent network) using the 'assign sites' utility, the site is given a path of /network/sitename. This doesn't seem to work, lots of broken file links, broken theme etc. (doesn't seem to be able to find the files, as well as various other things) Should it be capable of assigning such a path or is it wrong to assign such a path to the site in the first place?

    When I add a site when logged into the intended network, the url is made just /sitename and the network name doesn't form part of the url. Is this the correct behaviour?

    http://wordpress.org/extend/plugins/networks-for-wordpress/

  2. David Dean
    Member
    Plugin Author

    Posted 3 years ago #

    Prepending the network's path to the site's path is expected behavior. WordPress makes the site's URL from its domain and path, not including the underlying network's path.

    I set up a new WP install with a single network in a sub directory and added a new site, and WP included the network's path in the new site's path.

    Check your $BASE and RewriteBase to make sure they aren't trying to route requests to a path that doesn't work for your secondary network.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic