Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 07-14-2009, 04:36 PM   #1
Member (5 bit)
 
Join Date: Jun 2009
Posts: 24
Question One Hosting Account Multiple Domain Names

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?
rjhidaho is offline   Reply With Quote
Old 07-17-2009, 03:29 AM   #2
glc
Forum Administrator
Staff
Premium Member
 
glc's Avatar
 
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.
glc is offline   Reply With Quote
Old 07-19-2009, 10:55 PM   #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]
For the second domain (blog2.com), go to the control panel of your webhost and click add-on domain. Add the second domain and redirect to another folder. Alternatively you can ask your webhost support to add the second domain for you.

Last edited by namvijay; 07-19-2009 at 10:57 PM.
namvijay is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:42 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2