• Resolved Jakensen

    (@jakensen)


    Hi there,

    First, I would like to thank all the people that will be willing to help me in any way; I’ll try and return this favor to other users.

    This here is my first post on WP forums as I so far managed to get my WP up and running without a hitch, I do thank WP for the codex(s) and documentation they provided, it helped a lot. I am running into a problem though and I have looked for information but all I could find wasn’t clear enough to my taste.

    Here is the problem:

    I have one website that works perfectly well and I am running it on its own directory (mysite.com/site1 while the URL being mysite.com), with plugins, a theme I created, etc. I would like to create a second website now. This second website can be using the same WP install, I do not mind. But, and a big one at that, it has to be a different domain (understand not a subdomain: sub.mysite.com, nor a different path mysite.com/site2), from what I read on Multisite Network, MU, etc. it is possible to share a single WP installation and database with multiple websites but so far what I have seen only refers to subdomains or different paths not two different domain name.
    So if one of you dear helper out there could tell me how to do something like that ?

    To sum it up :

    Run one website at : http://www.mysite1.com of its own directory (www.mysite1.com/wpinstall1/ for example), then run a second website, on the same server, with a different domain name : http://www.mysite2.com of its own directory (www.mysite2.com/wpinstall2/). If they can’t be in their own directories it’s okay, I just find it cleaner that way.
    PS : I get around well with HTML & CSS, can mess around with PHP or jQuery or even Javascript. So I’m not a complete newbie either.

    If you have any questions, any recommendations, etc. Feel free (yes, free !) to ask or write it down 🙂

    PS : I get around well with HTML & CSS, can mess around with PHP, jQuery or even Javascript but not to the extreme.

Viewing 7 replies - 1 through 7 (of 7 total)
  • It depends on your hosting account.
    Do you have access to cpanel or any similar hosting interface?
    You need to create a new package\account for your second domain.
    Set the nameserver in your domain settings to the server IP.

    If you have a single account with your provider I suggest to extend the hosting plan. It’s really no good idea to have two domains running within the same hosting account and share the same database.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    You can do that.

    Since you have http://www.mysite1.com as the ‘visual’ URL of the site, you can use subfolders like http://www.mysite1.com/site2 (I KNOW! hang on!) and then map http://www.mysite2.com to that site 🙂

    https://wordpress.org/plugins/wordpress-mu-domain-mapping/

    Oh yeah domain mapping plugin can do wonders 🙂
    But let’s hear the SEO guys. I’m not sure about it. Couldn’t this lead to a penalty? Does domain mapping use a 302 permanent redirect?

    Thread Starter Jakensen

    (@jakensen)

    Hi there, thank you a lot for your answers, this is actually way more than I had expected !

    I do have access to cpanel and my ftp. And I thought of something yesterday but didn’t want to answer to my own post as to not appear to be bumping the threat.

    I have 4 domains (www.site1.com, http://www.site2.com, http://www.site3.com, http://www.site4.com), they all point to the content of http://www.site1.com right now.

    What I did is I went to Domain central and used pointers to point to a subdirectory for site2, site3 and site4, giving them each a folder like /root/site1, /root/site2, etc.

    Could I know install WP in each of these directories ? I’d have to import my themes and re-install my plugins but it doesn’t bother me, I would actually prefer it this way.

    Is that the same to domain mapping in a way ? Would that work ?

    @gerald, I read that you can change this permanent redirect to a 301 instead without too much trouble with WP, that could work too.

    Thread Starter Jakensen

    (@jakensen)

    I just uploaded a dummy simple website, index + css + a few images in /root/site2, and when I go to http://www.site2.com, it does show up, so I think it would work. I would simply need to install wordpress on this domain and it will install it its subdirectory, not bothering the other installation at the root :).

    if possible use a 301 permanent redirect (not 302 temporarily moved) – sorry, my fault – it was late for me already yesterday) and then all should be fine.

    Though I would personally prefer to have each domain in its own account but maby that’s just me 🙂

    Thread Starter Jakensen

    (@jakensen)

    Well what I did in the end and works perfectly is that I simply used “Pointers” in Domain Central. I pointed http://www.mysite2.com to /site2, then http://www.mysite3.com to /site3, I then made two fresh new install of wordpress with their own database and it worked like a charm !

    My server still looks clean since each website has his folder too 🙂

    I now have my three domain with each their wordpress, it will be a bit repetitive to update them but oh well.. I do not think in my case there was a simple way to have three different domains with three different content sharing the same theme, plugins, etc. If it had been subdomains or subfolders, why not but..

    Anyway, thank you for all your help guys ! I really appreciated !
    If you still have any suggestions, feel free to notify me. I’ll mark this as resolved.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Two websites, one server’ is closed to new replies.