View Full Version : Any special setup for multiple domains/blogs?
MacYakker
12-29-2008, 01:55 PM
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
felgall
12-29-2008, 04:17 PM
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.
Bob Barr
12-29-2008, 05:19 PM
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.)
Early Out
12-29-2008, 05:47 PM
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
Bob Barr
12-29-2008, 06:19 PM
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.
felgall
12-29-2008, 07:16 PM
^ 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.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.