Blocking a domain from being used, reserve for personal use

So when you attempt to access the wordpress website with a domain that is not registered within the wordpress multisite domain mapping feature already, it sends you to "" to register it.

How would I make wordpress not do anything but let whatever the server itself lets happen when a domain that points to the server accesses it?

I need to do this because I have a domain I am adding to my cpanel account called "", it will however not use the base "/public_html" folder, it will use "/public_html/abc". When I access, I get redirected to "" instead of having the contents of "/public_html/abc" displayed.

Thanks in advance.

  • Jack Kitterhing

    Hi there @Chippy,

    Hope you're well today and thanks for your question.

    WordPress does this, if user registration is enabled, but no site at the visited sub domain or sub directory is found, so the end user can then register that site.

    To stop this from happening add the following to your wp-config.php

    define( 'NOBLOGREDIRECT', '' );

    That will then redirect to when ever a sub directory or sub domain is visited that doesn't exist. :slight_smile:

    Thank you!

    Kind regards

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.