|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (5 bit)
Join Date: Jun 2009
Posts: 24
|
I have a single hosting account. I would like to set up several Wordpress Blogs (each in its own subdirectory).
I would like to have each of these blogs have a unique top level domain name such as: www.blog1.com www.blog2.com and their content would be located at: www.myhostingaccount.com/blog1 www.mybnostingaccont.com/blog2 When a user enters one of the top level domains, they would automatically be directed to the main hosting account subdirectory. Can this be done or would I have to get a hosting account for each domain name? |
|
|
|
|
|
#2 |
|
Forum Administrator
Staff
Premium Member
Join Date: May 2000
Location: Joplin MO
Posts: 37,790
|
All you need is a hosting account that offers "addon domains". I, and several other members here, use Surpass Hosting, which does. You point all the domains to their DNS and set up the addons in Cpanel. The addons all redirect to a subdirectory in the main domain.
|
|
|
|
|
|
#3 |
|
Member (5 bit)
Join Date: Oct 2008
Posts: 16
|
You can have a same hosting account for several provided your web host allows that.
Normally when registering for a webhost you have to use atleast one domain (eg. blog1.com) which will point to the main folder (public_html). This can be redirected to a folder using .htaccess redirect. See here HTML Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?blog1.com$ [NC]
RewriteCond %{REQUEST_URI} !^/blog1/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /blog1/$1
RewriteCond %{HTTP_HOST} ^(www.)?blog1.com$ [NC]
RewriteRule ^(/)?$ blog1/index.html [L]
Last edited by namvijay; 07-19-2009 at 10:57 PM. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|