WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Multiple Subdomain/Subdirectory setup (9 posts)

  1. black4eternity
    Member
    Posted 2 years ago #

    Hi,

    I have setup a domain say http://www.domain.com
    Enabled multisites as http://www.domain.com/site1 and http://www.domain.com/site2.

    1) Now I want site1.domain.com to redirect to http://www.domain.com/site1. If it shows the url as http://www.domain.com/site1 is fine. Ofcourse if there is way of showing option 1 thats better.

    2)I want to map say domainnew.com to redirect/map to http://www.domain.com/site2. I understand this is possible through WPMU Domain Mapping Plugin

    3) http://www.domain.com/site3 or site3.domain.com will have a Non WP software like Zencart or VTiger on that. So I want WP not to detect/ignore that part. As long as it does not Conflict I am fine. Also, should I create this through my hosts control panel ? I can think of create a folder vtiger in my root(where wp in installed and install the software in there.Then in my host cpanel redirect to it.) Would it cause things to break.

    I understand some of these questions are repated but I wasn't able to find a comprehensive answer/tutorial.

    I hope someone can guide me through this.

    Thanks in Advance

  2. You can do that via domain mapping, though if you'd wanted site1.domain.com, it would have been better served using subdomains instead of subfolders.

    Install http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/

    Map site1.domain.com to domain.com/site1
    Map domainnew.com to domain.com/site2

    Make site3(notWP).domain.com it's own subdomain via cpanel.

  3. 3) http://www.domain.com/site3 or site3.domain.com will have a Non WP software like Zencart or VTiger on that. So I want WP not to detect/ignore that part. As long as it does not Conflict I am fine. Also, should I create this through my hosts control panel ? I can think of create a folder vtiger in my root(where wp in installed and install the software in there.Then in my host cpanel redirect to it.) Would it cause things to break.

    go create the folder in cpanel. it will override wordpress. Don't redirect anything; just make a folder and put the program n there you wish to use.

  4. black4eternity
    Member
    Posted 2 years ago #

    @Andrea_r Thanks! I was hoping you might see this question :)
    @Ipstenu Thanks for the reply. Like most of your replies I have read on the forum it's very helpful :)

    I have a question

    Let us say I Map site1.domain.com to domain.com/site1
    Then a person typing site1.domain.com will be sure to reach it.

    But if someone types in domain.com/site1 ( After domain mapping) will that links still work and lead to the WP site.

    The reason I have created so is that my website was earlier(Non WP Installation) working on both site1.domain.com and domain.com/site1

    So I assumed using the subfolder installation might give me an advantage in terms of SEO. And I can try the mapping later and see if both can work.

  5. Actually,, re-reading this you cannot map a folder name. so mapping domain.com/site1 will not work.

    it wokred on both addresses previously because of the was a real subdomain is made on your web server.

    So I assumed using the subfolder installation might give me an advantage in terms of SEO.

    Not really, no. Having the same content at both URLs will actually harm you.

  6. black4eternity
    Member
    Posted 2 years ago #

    Hi Andrea,

    Thanks for the info.

    I am thinking of a reinstall and activating subdomains.

    I tried the WPMU Domain Mapping Plugin.
    Now while the main page of the site works fine the sub-sites are not working.

    It does not load the custom theme we created.
    The content of the site is shown though.
    And I am not able to access the dashboard of the subsite.

    Main Site - http://bit.ly/nf0nuU

    Sub Site - http://bit.ly/pza5gf

    I followed this tutorial. http://ottopress.com/2010/wordpress-3-0-multisite-domain-mapping-tutorial/

    I wonder if me being on 3.1.3 is an issue.
    As when the domain_mapping.php is in the mu-plugins folder it was not showing up in the admin menu.

    When I move domain_mapping.php to plugins folder then it got activated.

    I read that I have to activate it for every site too. But since I cannot access the dashboard for the sub sites I can't figure out how to proceed.

  7. black4eternity
    Member
    Posted 2 years ago #

    @Andrea_r Since I read somewhere that you have a Netfirms account just wanted to inform you that this domain is hosted on the same.

    I have been migrated to the new platform they are using.

    Hope that helps

  8. As when the domain_mapping.php is in the mu-plugins folder it was not showing up in the admin menu.

    but it will be active and running. yes, really. then you don't need to active it from the backend.

    if you put it in the regular plgnmenu, you need to NETWORK activate it, from network admin,

    I was only testing a netfirms account - then I cancelled it

    And I am not able to access the dashboard of the subsite.

    sub site looks fine to me

  9. black4eternity
    Member
    Posted 2 years ago #

    @Andrea_r Thanks for the reply.

    I removed the domain_mapping.php from the mu-plugins folder and moved it to the wp-content/plugins folder and after that the sites are working fine.

    Also, I was able to map subdomains to the blog as you and Ipstenu said.

    The problem was basically coz of the htaccess in the new Netfirms platform. For some reason it was cleared I guess.

    I put in the multisite settings into htaccess and everythings just perfect :)

    Thanks to both of you amazing people !!!

    PS - Detailed reply in case any other Netfirms users find any need for assistance.

Topic Closed

This topic has been closed to new replies.

About this Topic