+ Reply to Thread
Results 1 to 6 of 6

Thread: Any special setup for multiple domains/blogs?

  1. #1
    Join Date
    Dec 2008
    Posts
    1

    Default Any special setup for multiple domains/blogs?

    I just signed up for an account. I've specified my first domain and am ready to run the simplescripts to setup a blog. I plan on registered another two or three domains to point to other blogs. From what I've read, this is allowed.

    Should I install the first and all subsequent blogs to their own folders (ie not root for the first)?

    Thanks,

    MacYakker

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

    Default

    You might find it easier to organise everything with multiple domains if you put the main domain into a folder as well as the add-on domains. If you do decide to do that then doing it before you start uploading anything will be much easier than doing it later.

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

    Default

    Quote Originally Posted by felgall View Post
    You might find it easier to organise everything with multiple domains if you put the main domain into a folder as well as the add-on domains. If you do decide to do that then doing it before you start uploading anything will be much easier than doing it later.
    Perhaps I'm misunderstanding something. I've always thought that an account's primary domain had to have its 'index.html' file stored in the account's 'public_html' folder. Is that incorrect?

    Where would you indicate to the server which folder contains the primary domain's files? (I know how to set this up for add-on domains but I didn't know that there was a corresponding capability for the primary domain.)

  4. #4
    Early Out's Avatar
    Early Out is offline Former Moderator, Still Respected
    Join Date
    Mar 2006
    Location
    Sector R
    Posts
    4,650

    Default

    Quote Originally Posted by Bob Barr View Post
    Perhaps I'm misunderstanding something. I've always thought that an account's primary domain had to have its 'index.html' file stored in the account's 'public_html' folder. Is that incorrect?

    Where would you indicate to the server which folder contains the primary domain's files? (I know how to set this up for add-on domains but I didn't know that there was a corresponding capability for the primary domain.)
    There are at least three different ways of doing it - one that shouldn't be used (an iframe), and two that will do the trick (with a PHP file or with .htaccess). The .htaccess method is probably the cleanest. See this thread: http://www.bluehostforums.com/showthread.php?t=947

  5. #5
    Join Date
    Apr 2008
    Location
    Morgan Hill, CA
    Posts
    361

    Default

    Thanks for the information and the link. I'm a bit leery of messing with the .htaccess file since I don't think I have really good handle on what it's doing.

    From your link, the line:

    RewriteRule ^index\.html$ subfolder/index.html

    seems to be what I need. This line appears to rewrite the primary domain's index.html access to point the relocated file in folder 'subfolder'. Have I got that part right? Am I also correct in thinking that there's no need for a 'RewriteCond' line because this deals with a single fixed filename?

    As I'm reading it, the '^' and '$' symbols are delimiters for the filename and the '\' is an escape character for the period in the file name.

  6. #6
    Join Date
    Nov 2006
    Location
    Sydney, Australia
    Posts
    4,533

    Default

    ^ means the start of the field and $ means the end of the field so using them stops the value matching on a part of the field.

    A dot by itself means any character and so needs to be escaped with the \ to make it back into just a dot.

+ Reply to Thread

Posting Permissions

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