What are you seeing when you go to sub.domain.com? Is your wildcard sub-domain pointed to the domain.com/site/ directory?
Perhaps you could also post your .htaccess file if you’re using Apache.
I suspect there’s something to do with the wp install being in a sub-directory and not in the root directory.
The only time when that would be a problem is if you are mapping the sites to another domain using http://ww.wp.xz.cn/plugins/wordpress-mu-domain-mapping/. In that case it would need to be in the root directory.
Patrick, thank you very much for your reply.
I’m probably missing something simples here. First time with WP and Multisite.
My domain is http://www.templodoconhecimento.com.
M
My wildcard subdomain looks like this:
*.templodoconhecimento.com, in /public_html/site, pointed to http://www.templodoconhecimento.com/site/
My main site’s domain is http://www.templodoconhecimento.com and it’s path is /site/
My secondary site’s domain (created through wordpress) is andunie.templodoconhecimento.com and it’s path is /site/
When I try to access andunie.templodoconhecimento.com I get to the main site page, not the second.
The weird part is that, though the redirect is ok on the CPanel, it does no appear in htaccess from the public_html folder. Would it be the case to put it there manually?
RewriteEngine on
RewriteOptions inherit
<Files 403.shtml>
order allow,deny
allow from all
</Files>
deny from 91.207.4.201
RewriteCond %{HTTP_HOST} ^templodoconhecimento\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.templodoconhecimento\.com$
RewriteRule ^/?$ "http\:\/\/www\.templodoconhecimento\.com\/portal" [R=301,L]
Hello!
All fixed!
First o all, my shared host does no allow wildcards.
So I decided to do it actually creating the specific subdomain and redirecting it to the main wodpress install. Nothing. I even deleted my wp install, created it all over again, and nothing.
My mistake is that, in all those attempts, I created the multi sites through wordpress and then the subdomains.
It never occured to me that the subdomain should be created and redirected for me to create the new site. Probably missed this in the instruction I’ve read.
Anyway, subdomains created and redirected, sites created afterwards, and all works exectly like it should.
Thank you very much!