Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: can I host both a website and a blog under the same domain

  1. #1
    Join Date
    Oct 2007
    Location
    Cairns/Australia
    Posts
    7

    Default can I host both a website and a blog under the same domain

    I have a website, which is NOT wordpress, hosted with Blue Host. Now I also want to do a blog with wordpress.org. Can I use the same domain, or do I need to register a new domain, subdomain or add on domain? Please help as I want to use the blog for advertising and also to direct traffic towards my website. All suggestion would be greatly appreciated.

  2. #2
    Join Date
    Nov 2006
    Location
    Sydney, Australia
    Posts
    4,944

    Default

    You can do it one of three ways.

    1. Host both on the same domain - where a static page exists it will be what appears and any other page name will redirect to the blog.
    2. Put the blog in a folder within the domain so the static pages are at example.com and the blog is at example.com/blog
    3. Create a sub-domain via cPanel and then put the blog in the folder you set up the subdomain to point to so that it can be accessed as blog.example.com

    While the first of these is possible you will have a cleaner setup with one of the other two.

  3. #3
    Join Date
    Apr 2008
    Location
    Morgan Hill, CA
    Posts
    998

    Default

    Quote Originally Posted by felgall View Post
    2. Put the blog in a folder within the domain so the static pages are at example.com and the blog is at example.com/blog
    3. Create a sub-domain via cPanel and then put the blog in the folder you set up the subdomain to point to so that it can be accessed as blog.example.com
    I'm about to do the same thing on a site that I have. Are there any significant pros/cons in choosing between methods 2 and 3?

  4. #4
    Join Date
    Apr 2008
    Location
    Chasing the Holy Grail - Pacific Northwest
    Posts
    1,312

    Default

    Bob, in my mind if I were going to add a blog to my site, and it really was separate from the main site, then I would use a subdomain so it would read as blog.example.com.

    Visually when I see an address with a subdirectory such as example.com/blog then I kind of expect to be able to go to the main page and then see a link back to the blog, and expect it to be relevant to the main site. Just my sometimes twisted way of perceiving things sometimes.

    I think the choice comes down to how you want your visitors to see your site layout.
    In the Hyperion universe, a farcaster is an instantaneous transportation device.
    Experience: The thing you get just after you need it.

  5. #5
    Join Date
    Nov 2006
    Location
    Sydney, Australia
    Posts
    4,944

    Default

    I use a sub-domain for my personal blog and a completely separate domain for the blog that goes with my main site.

    You can always switch easily between using a folder, sub-domain or domain since the blog has to reside in a folder anyway. Simply point the sub-domain or domain to the folder to swap over and update the links to the blog.

  6. #6
    Join Date
    Oct 2007
    Location
    Cairns/Australia
    Posts
    7

    Default follow up question

    can my blog have the same name as my primary website or does it need to have a different name?

  7. #7
    Join Date
    Apr 2008
    Location
    Chasing the Holy Grail - Pacific Northwest
    Posts
    1,312

    Default

    It can use the same domain name unless you want a different domain name to use. More on that in a second.

    If you build your main site as normal under public_html, then you would access that as:
    http://www.example.com

    You could then add a blog, or gallery, or anything else in a subdirectory of the public_html folder - for instance "blog" or "gallery". Just make sure that when you use Simple Scripts to install your, that you install it into a directory or folder name that in meaningful under the public_html.

    You would access that as follows:
    http://www.example.com/blog or
    http://www.example.com/gallery

    However, if in the cPanel you created what is called a subdomain and point it to that subdirectory, you could then access them as follows:
    http://blog.example.com or
    http://gallery.example.com

    Now, back to the above. If you want the blogs to be a different domain name such as:
    http://www.mybrilliantblog.com
    then you would have to purchase that domain name, assuming that it was available, as what is known as an add-on. You can do that through Bluehost at the cost of $10 per year per name. It would be hosted in your current account, example.com, as just another folder in public_html, but it would have some special properties. You would install your blog into that domain name, and the setup will give you that option in Simple Scripts. It's a drop-down choice. You would access your blog then as http://www.mybrilliantblog.com.
    Last edited by farcaster; 07-01-2010 at 11:11 PM.
    In the Hyperion universe, a farcaster is an instantaneous transportation device.
    Experience: The thing you get just after you need it.

  8. #8
    Join Date
    Oct 2007
    Location
    Cairns/Australia
    Posts
    7

    Default

    thank you Barry, that was the answer I was looking for - and in plain English, which means I could actually understand every word you were saying :D really important, since English is not my first language

  9. #9
    Join Date
    Jul 2010
    Posts
    2

    Default

    Yes, you can host both website and a blog under the same domain. Because once you own the main domain, you can add any number of subdomains you want. Alternatively, you can also have them point to the same website if that's what you prefer.
    Last edited by farcaster; 07-10-2010 at 09:37 AM. Reason: no sigs till you qualify

  10. #10
    Join Date
    Jul 2010
    Posts
    13

    Default

    Just a word of advice if you do host a website and blog make sure the databases are separate. This allows you to backup the sites separately and will prevent any data overrides from occurring.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •