Multisite Sub domains not working

by Bilal Awan   Last Updated September 23, 2017 21:08 PM

This is my first experience with WordPress multisite and i followed all instructions from codex to make my website a multisite.
But my sub domains are not working and chrome is displaying this message for my sub domains.
DNS address could not be found.
Do i have to create sub domain all the time in my cpanel before creating new website (sub domain) in WordPress? I already have few sub domains which are working perfectly but these all are separate websites. Now i make my main domain a multisite but all sub domains are not working on this. Here is my htaccess code which is provided my WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]

# add a trailing slash to /wp-admin
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^(.*\.php)$ $1 [L]
RewriteRule . index.php [L]

I also add code in my wp-config file provided by WordPress and able to login into network panel and to create sub domains but when i try to visit any of the sub domain it displays DNS error. I will really appreciate it if someone will guide me about this. Thank you!

Answers 1

Do I have to create sub domain all the time in my cpanel before creating new website (sub domain) in WordPress?

You need to make sure that the subdomains are created somewhere. WordPress doesn't have the capability to create DNS entries for you.

If you've got WordPress set up on and you want to create,, etc., you need to ensure that the DNS entries for,, etc., are active.

Depending on your hosting situation, you might be able to create wildcard subdomains, meaning that you can add * to your DNS entries, which would allow you to point anything ending in to your Multisite installation. This is something you'll need to research with your hosting company, though, and not something we can guide you through here.

Codex: Before You Create a Network ยป Domain-based

Pat J
Pat J
September 23, 2017 20:56 PM

Related Questions

Wordpress path multisite redirect

Updated July 08, 2016 08:01 AM

Localhost Multisite Redirect error

Updated December 28, 2016 08:03 AM

multisite 404 error for subdirectory

Updated April 14, 2015 22:03 PM