Report this

What is the reason for this report?

Specify Wordpress Subdomains

Posted on December 16, 2013

Hi,

I’ve got a multi-site wordpress setup working well.

Currently I have

http://mydomain.com http://site1.mydomain.com http://site2.mydomain.com

This works well. But my DNS is setup as a wildcard DNS - so if someone tries to visit site3.mydomain.com - it takes them to the wordpress registration page (which is disabled). I want it to throw a 404 instead.

So I tried to remove the wildcard DNS, and specify an A record for each site - but now it just takes me to the home page.

Any idea how I can do this correctly?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Check out <a href=“http://premium.wpmudev.org/blog/how-to-redirect-nonexistent-blogs-in-wordpress-multisite/”>How To Redirect Nonexistent Blogs in WordPress Multisite</a>.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.