URL restrictions when creating a new site on multisite

1) I have set up a multisite using subdirectories. I want to create sites with country and locations in the urls ie. http://www.mydomain.net/uk/cambridge http://www.mydomain.net/uk/london etc. but it won't let me use / between the country code and the location. Is there a way of doing this? At the moment I'm having to use http://www.mydomain.net/uk-cambridge using a - instead of /

2) Also I have been asked if I can map specific site urls within my multisite to other domains for other website designers to host. It's for a franchise - so, for example, they may want http://www.mydomain.net/it/milano to appear in the browser as the url but for a local designer to control and host the site. I know you can map from other domains to sites within a multisite but how can I do it the other way round?

Thanks for your help in advance.

  • Sajid

    Hi Stephanie,
    Hope you are doing good today :slight_smile:

    1. I am sorry but this is not possible in WordPress Multisite Setup. Because it can only manage one directory at the moment. In your case their are two directories, one /uk and other is /london.

    However, what you can do is create a network of Multisites using the WP Multi Network plugin. This way you will have a setup like this.

    > maindomain.com - as a multisite top level network.
    > > maindomain.com/uk - as a second level network and subsite of top level network.
    > > > maindomain.com/uk/london will be the subsite of second level network.

    2. I am sorry but I am not sure what you are trying to achieve here ? Do you want to map the subsite with a Top Level Domain (TLD) ?

    If yes then you can do this using our Domain Mapping plugin.

    If its vice versa, then you have to setup a redirect rule on your other domain to redirect users to multisite subsite.

    Hope that helps! Feel free to post a reply if you need further assistance :slight_smile:

    Best Regards,
    Sajid

  • Stephanie

    Thanks for your help Sajid - hope you're having a great weekend.

    1) I tried installing the WP Multi Network plugin but had some problems - every time I edited or added a network, it orphaned all my sites and replaced mydomain with network.zero - not sure why it did but I've given up now.

    2) I am looking at redirecting some of the subsites to other TLDs. For example: I will want to keep http://www.mydomain.net/subsite1 and http://www.mydomain.net/subsite2 but have http://www.mydomain.net/subsite3 mapped to another TLD for another developer to provide their own designs - I don't think I can do it as the IP address is the same for all http://www.mydomain.net subsites. Or is there an easy (I'm a beginner at using multisites) way of somehow creating different IP addresses for each subsite whilst still using the same root domain name?

    I think I'm going to have to workaround the above.

    Thanks again for your help.

  • Sajid

    Hi Stephanie,
    Hope you are doing good today :slight_smile:

    1. I have not tried that plugin myself but I saw some of our members were using it on their sites. Also, if you have any issues then you can contact the plugin author. I can see he is not active but still answers the questions on support forum.
    https://wordpress.org/support/plugin/wp-multi-network

    2. Honestly, it sounds like a job of our Domain Mapping plugin. It does not matter if you have single IP for your main domain and obviously for you subsites too. All mapped domains (TLD) must be pointed to the root of the folder and resolved on same IP.

    For workaround for point one. What you can do is, use categories or pages. For example you have a site http://domain.com/uk as subsite and create a page or category called london. But in this case you have to redirect all traffic from home page to that page/category using a plugin like redirection. This way you can get the URL http://domain.com/uk/london.

    Take care and have a nice day :slight_smile:

    Best Regards,
    Sajid

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.