Question

Specify Wordpress Subdomains

  • Posted 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?

Subscribe
Share

Submit an 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>.