• Resolved ferraz.lucas

    (@ferrazlucas)


    I need some help. I’m migrating from Xoops to WP, and I will use a Network, with 3 websites. Currently, my website with Xoops is in the directory http://www.domain.com/portal. The main address, http://www.domain.com, redirects to the /portal directory. This has to remain that way until I’m ready to realease the new website. My WP instalation in in the domain.com/site directory. This is the main website of the network, I’ll have two more. I was able to succesfully create them with sub-directories, but I cannot make then work with sud-domains. I create the wildcard sub-domain, but it doesn’t work, I suspect there’s something to do with the wp install being in a sub-directory and not in the root directory. Any ideias of what I might do?

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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.

    Thread Starter ferraz.lucas

    (@ferrazlucas)

    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.

    Thread Starter ferraz.lucas

    (@ferrazlucas)

    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]
    Thread Starter ferraz.lucas

    (@ferrazlucas)

    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!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Problem with sub-domains’ is closed to new replies.