I used a one click install to install wordpress and then converted it into a sub domain multisite. I have made the required changes to the wp-config and htaccess file.
The main site example.com works absolutely fine.
When I try to add another site, it shows that the site has been successfully added. But the address sub1.example.com shows a page that says no content here and sub1.example.com/wp-admin gives a 404 error.(These are both generic pages similar to what my server shows on any random subdomain)
I do have a wildcard subdomain registered but its corresponding folder on the server seems to have no wordpress related files.
What can I do to fix this?
Also, when I create sub1.example.com in wordpress, should I also register this subdomain on my cpanel or does the wildcard take care of it? And if I should register it, should I do this before creating a site in wordpress or after?
(I tried all 3 scenaorios but I still get the same problem)
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
WordPress can use subdomains only if they are linked to the same directory as the WordPress installation.
Wrong
- wp/ // WP installation - subdomains/ // wildcard subdomains
Correct
- wp/ // WP installation & wildcard subdomains
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0