最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Subdomain multisite gives 404 on sub sites

programmeradmin1浏览0评论

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 works absolutely fine. When I try to add another site, it shows that the site has been successfully added. But the address sub1.example shows a page that says no content here and sub1.example/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 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)

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 works absolutely fine. When I try to add another site, it shows that the site has been successfully added. But the address sub1.example shows a page that says no content here and sub1.example/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 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)

Share Improve this question asked Feb 23, 2014 at 19:51 sarincasmsarincasm 1351 silver badge5 bronze badges 0
Add a comment  | 

1 Answer 1

Reset to default 0

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
发布评论

评论列表(0)

  1. 暂无评论