[resolved] Do not allow Sub-Domain users to create a new sub-domain .. (15 posts)

  1. tanver
    Posted 6 years ago #

    I have setup a Multi-site domain, so that any registered user can create sub-domain. Now the issue is that what I have observed is that any visitor/user to sub-domain can also create a sub-domain - though with the url like abc.blog.com - but I want to restrict it and instead allow only the visitors of the main blog to have this facility.
    Any help to achieve this will be appreciated.
    Tanveer Malik

  2. Not sure what you;re asking, as users who try and sign up to a sub-blog get redirected to the main blog's signup page. Which is what you say you want.

  3. tanver
    Posted 6 years ago #

    Sorry if I could not make you understand my point, let me say it again.

    The user's from a sub-domain are able to sign-up and create a sub-domain on my main blog which I don't want to be the case. I only want the visitor's of my main blog being able to create the sub-domains.

    May be it is the case of a redirection as you have said, but am not sure if this is the case how to fix it? Please advise

  4. If I have this right...

    You don't want people to be able to create new sub-domains by typing in 'newsub.domain.com'. Instead you ONLY want them to be able to create a new subdomain by going to the registration page off domain.com?

  5. May be it is the case of a redirection as you have said, but am not sure if this is the case how to fix it?

    No, I'm saying it *will* redirect visitors to the main site.

    If you really do not want people to click registration links on the sub-blogs, then get the "register" links out of those themes.

  6. tanver
    Posted 6 years ago #

    Yes, let us say domain.com is my main domain and sub.domain.com is a sub-domain created by someone else.
    I only want the sub-domain to be created when someone visits the domain.com blog.
    Right now the visitors of sub.domain.com are also able to create a sub-domain which I want to restrict.

  7. Right, and I'm telling you that when a user goes to sub.domain.com and clicks the link to get a new blog they will be redirected to the main blog.

  8. Do you not want them to see the OPTION 'you can create a new blog' from newsub.domain.com?

    That is, you don't even want them to have a link to go to the main blog?

    (There's no link to create a new blog off exisitingsubdomain.domain.com on MultiSite ... or at least not on mine)

  9. tanver
    Posted 6 years ago #

    Yes ipstenu, that's what I want to achieve on my MultiSite blog as well. I would appreciate if you can give me a little incite into how to achieve this?

  10. what;s the link to your site?

    by default, there will be no links on the subblogs that say "create a new blog. You either have a plugin or a theme adding that link.

    Either way, the link will still take the visitor to the main blog.

  11. tanver
    Posted 6 years ago #

    This is the link to the blog .. I am doing for my client .. http://legisblogs.co.uk/

  12. If I go to http://foobar.legisblogs.co.uk/ I get redirected to http://legisblogs.co.uk/wp-signup.php?new=foobar

    And you want people to go to what instead?

  13. tanver
    Posted 6 years ago #

    I just want the option to create the blog site to be taken away from the sub-domains instead.

  14. Add this to your wp-config.php

    define( 'NOBLOGREDIRECT', 'http://legisblogs.co.uk/' );

    That will redirect http://foobar.legisblogs.co.uk/ to http://legisblogs.co.uk/ instead.

  15. tanver
    Posted 6 years ago #

    Thanks for your support, these forums are really an important source of information and knowledge sharing.

Topic Closed

This topic has been closed to new replies.

About this Topic