There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Multiple Websites One Host


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
hicksjt's Avatar
Senior Member with 114 posts.
 
Join Date: Jul 2005
22-Nov-2005, 12:20 AM #1
Multiple Websites One Host
I don’t want to sound naive but I’m looking to build three websites for the same person. Out of all the hosting packages out there I’m not going to need a lot of space, but I was wondering if there’s a way to configure all three websites into one hosting plan?
Sequal7's Avatar
Computer Specs
Distinguished Member with 2,369 posts.
 
Join Date: Apr 2001
Location: Around the corner!
Experience: Including today?
22-Nov-2005, 01:24 AM #2
Yes you can. Most hosting companies allow domains to point to different folders in a webspace. Some charge for this, some dont.

www.yoursite.com goes to your webhost yoursite root folder
www/yoursite2.com goes to yoursite/yoursite2 folder in your webserver, each shows a different website.
Gibble's Avatar
Distinguished Member with 27,137 posts.
 
Join Date: Oct 2001
Location: Striking or Scoring
Experience: The Alpha and Omega
22-Nov-2005, 10:10 AM #3
If the webserver is apache and they support .htaccess files it's really a snap to do.

Assuming both your domains are pointing to the same webserver and you don't have access to the http.conf file to set rules, you can use the .htaccess file.

Simply set up your 2nd website in a directory and use the rewrite rules. In your .htaccess file (in main site) enter the following, replacing domain2 with your 2nd domain name.

RewriteEngine On
Options +FollowSymlinks
RewriteBase /

RewriteCond %{HTTP_HOST} domain2.com
RewriteCond %{REQUEST_URI} !domain2/
RewriteRule ^(.*)$ domain2/$1 [L]
__________________
izme: You know...it's kind of nice to sit atop Civilized debate and look down below on all of the uncivilized master debating we are here...just out of the fight zone

Gibble: Now you know what it's like to be Canadian.
hicksjt's Avatar
Senior Member with 114 posts.
 
Join Date: Jul 2005
22-Nov-2005, 10:07 PM #4
Thanks for your response.

Apparently, GoDaddy.com doesn't allow three websites for one hosting package. Here's what I received from them: "If you want separate websites you will either need to purchase a separate hosting account for each of these domain names or forward two of the domain names to sub-directories of the shared hosting space. Please note that if you use this forwarding method these sub-directories will still be visible and accessible in a web browser through the domain name which is associated with the shared hosting account."

Gibble -

I have never attempted to use the method you posted, but I appreciate it. Plus, I'm not sure what kinds of servers are used by GoDaddy.
Gibble's Avatar
Distinguished Member with 27,137 posts.
 
Join Date: Oct 2001
Location: Striking or Scoring
Experience: The Alpha and Omega
22-Nov-2005, 11:22 PM #5
Quote:
Originally Posted by hicksjt
Thanks for your response.

Apparently, GoDaddy.com doesn't allow three websites for one hosting package. Here's what I received from them: "If you want separate websites you will either need to purchase a separate hosting account for each of these domain names or forward two of the domain names to sub-directories of the shared hosting space. Please note that if you use this forwarding method these sub-directories will still be visible and accessible in a web browser through the domain name which is associated with the shared hosting account."

Gibble -

I have never attempted to use the method you posted, but I appreciate it. Plus, I'm not sure what kinds of servers are used by GoDaddy.
They just told you exactly what I said

"forward two of the domain names to sub-directories of the shared hosting space"

Which is the code I just gave you. The note they gave is basically saying that if you have mydomain.com and place your other sites in mydomain.com/site2 and mydomain.com/site3 you can get at the site from either the first domain with the subdirectory OR the second domain.

You redirect my2ndDomain.com to mydomain.com/site2 and my3rdDomain.com to mydomain.com/site3

Nobody will know to look at mydomain.com/site2 if you don't tell them They'll use my2ndDomain.com all the time And if they do, you can still add a little script on each page to check that it's running from my2ndDomain.com and not mydomain.com/site2.
__________________
izme: You know...it's kind of nice to sit atop Civilized debate and look down below on all of the uncivilized master debating we are here...just out of the fight zone

Gibble: Now you know what it's like to be Canadian.
hicksjt's Avatar
Senior Member with 114 posts.
 
Join Date: Jul 2005
22-Nov-2005, 11:50 PM #6
Quote:
Originally Posted by Gibble
They just told you exactly what I said
Sorry, I didn't think that I was that computer illiterate.

Quote:
Originally Posted by Gibble
Which is the code I just gave you. The note they gave is basically saying that if you have mydomain.com and place your other sites in mydomain.com/site2 and mydomain.com/site3 you can get at the site from either the first domain with the subdirectory OR the second domain. You redirect my2ndDomain.com to mydomain.com/site2 and my3rdDomain.com to mydomain.com/site3
Okay, so "site2" and "site3" are folders within the main site (the site that was purchased with the only hosting plan). And will mydomain.com/site3 actually look like that in the address bar?

Quote:
Originally Posted by Gibble
Nobody will know to look at mydomain.com/site2 if you don't tell them
Is this a bad thing to do?

Quote:
Originally Posted by Gibble
They'll use my2ndDomain.com all the time And if they do, you can still add a little script on each page to check that it's running from my2ndDomain.com and not mydomain.com/site2.
So the scripts go into the pages of say, index2.html (for second site) and index3.html (for third site) within their respected folders.
Hierophant's Avatar
Senior Member with 177 posts.
 
Join Date: Feb 2005
Experience: A Quest to Increase Knowledge
23-Nov-2005, 01:49 AM #7
Arrow Is 150 GIGS of disk space enough????
Spam removed.

Last edited by Cookiegal : 23-Nov-2005 08:43 PM.
Gibble's Avatar
Distinguished Member with 27,137 posts.
 
Join Date: Oct 2001
Location: Striking or Scoring
Experience: The Alpha and Omega
23-Nov-2005, 09:29 AM #8
Quote:
Originally Posted by hicksjt
Sorry, I didn't think that I was that computer illiterate.



Okay, so "site2" and "site3" are folders within the main site (the site that was purchased with the only hosting plan). And will mydomain.com/site3 actually look like that in the address bar?



Is this a bad thing to do?



So the scripts go into the pages of say, index2.html (for second site) and index3.html (for third site) within their respected folders.

Well, sort of, you have one hosting plan, but you wanted three websites stored in it.

So you place your other websites in directories of your main site, you have to put them somewhere

So, a person could go to mydomain.com/site2/ BUT you wanted a 2nd domain to point to site2, not a directory of the main site. So after you purchase a 2nd domain you would point it to the same place as mydomain.com. Before modifying .htaccess (Ask if your host supports .htaccess files!!!) your 2nd domain will go to the same place as your first. But we want it to go to the site stored in the site2 directory. Which is what the .htaccess file changes do. They will type, and see my2ndDomain.com in the address bar, which is exactly what you want.
__________________
izme: You know...it's kind of nice to sit atop Civilized debate and look down below on all of the uncivilized master debating we are here...just out of the fight zone

Gibble: Now you know what it's like to be Canadian.
Hierophant's Avatar
Senior Member with 177 posts.
 
Join Date: Feb 2005
Experience: A Quest to Increase Knowledge
23-Nov-2005, 10:58 AM #9
.htaccess is a feature on my new host ,which I haven't moved all my sites to yet, You Test First is still with one domain per account Godaddy till I redesign it and move it ,it got attacked and the homepage got all twisted up which I can't seem to fix , the .htaccess is not enabled but you can do it yourself in the webserver section of the control panel.
__________________
"I do not know with what weapons World War 3 will be fought, but World War 4 will be fought with sticks and stones."
Albert Einstein

"In a time of universal deceit - telling the truth is a revolutionary act."
George Orwell

YOU TEST FIRST.ORG

You Test First Forums
Hierophant's Avatar
Senior Member with 177 posts.
 
Join Date: Feb 2005
Experience: A Quest to Increase Knowledge
23-Nov-2005, 11:05 AM #10
It says this about .htaccess files above the enable button...
Quote:
You are able to use .htaccess files with your hosting account if your application requires this. In most cases we would advise you to keep this option turned off as it can affect your website performance in a negative way.
Not my words, I wouldn't know.
Gibble's Avatar
Distinguished Member with 27,137 posts.
 
Join Date: Oct 2001
Location: Striking or Scoring
Experience: The Alpha and Omega
23-Nov-2005, 11:12 AM #11
Umm...the .htaccess file won't hurt performance enough to be noticeable. Of course any extra file adds a very slight performance hit...but if you need it, you need it. And to host multiple domains on a single account you need it.
AKA Arizona's Avatar
Computer Specs
Distinguished Member with 2,911 posts.
 
Join Date: Jul 2003
Location: Mississippi South of Mason Dixion
Experience: Computer & Web Design Engineer
23-Nov-2005, 11:39 AM #12
Have you considered creating your own web server?
JohnWill's Avatar
Computer Specs
Moderator with 77,033 posts.
 
Join Date: Oct 2002
Location: South Eastern PA, USA
Experience: Advanced age & experience
23-Nov-2005, 03:36 PM #13
Quote:
Originally Posted by Hierophant
Spam removed
You may not see this as SPAM, however, you should try reading the rules again. It seems clear from your post that you are affiliated with this site from your post. This is advertising, please don't do it again.

Spamming/Advertising - You cannot post advertisements of any sort in any forum. This includes products, services, or web sites from which you'd directly or indirectly benefit in any way.
EXCEPTIONS (may be objected to, at the discretion of the moderators)
Unaffiliated Announcements - If you see a great deal somewhere, you're welcome to share it with everyone by posting it in the "General Opinions and Reviews" forum if and only if you are completely unaffiliated with that deal.
Signatures - When posting a useful response, you may include your own web page (or that of your company) in the signature of your message. However, this does not precede other rules. (That is to say that you can't mis-use HTML in your link, provide links to naughty web sites, etc.)
__________________
Microsoft MVP - User Desktop Experience

If you think experts are expensive, wait until you see what amateurs cost you!

Help me out with some details here, I'm brilliant, not clairvoyant!

Last edited by Cookiegal : 23-Nov-2005 08:44 PM.
Hierophant's Avatar
Senior Member with 177 posts.
 
Join Date: Feb 2005
Experience: A Quest to Increase Knowledge
24-Nov-2005, 11:40 AM #14
Not happy Jan!
Quote:
Originally Posted by JohnWill
You may not see this as SPAM, however, you should try reading the rules again. It seems clear from your post that you are affiliated with this site from your post. This is advertising, please don't do it again.

Spamming/Advertising - You cannot post advertisements of any sort in any forum. This includes products, services, or web sites from which you'd directly or indirectly benefit in any way.
EXCEPTIONS (may be objected to, at the discretion of the moderators)
Unaffiliated Announcements - If you see a great deal somewhere, you're welcome to share it with everyone by posting it in the "General Opinions and Reviews" forum if and only if you are completely unaffiliated with that deal.
Signatures - When posting a useful response, you may include your own web page (or that of your company) in the signature of your message. However, this does not precede other rules. (That is to say that you can't mis-use HTML in your link, provide links to naughty web sites, etc.)
I'm affiliated with a huge international company am I , wow you have a generous opinion of me, I let you in on a little secret the way I'm affiliated with this company is.......
I PAY THEM USD$7.50 P/M to use their servers for my website, get a grip on yourself , I am teasing the skeptic Gibble who thinks he knows everything about everything . I did a lot of research before I selected my new host ,I went and read a lot of postings on a lot of forums before selecting the best deal I could find for myself,in my research I noticed alot of cynics who claimed that this hosts deals were to good to be true,but typically they spoke off the top of there heads with NO knowledge about what they were talking about and when confronted with a posting praising these webhosts by a paying customer the doubting Thomases still could not accept what they were told.
I looked at customers (of the hosts) websites and found them quick to locate and to be fast loading ,the bottom line.
You will note that I have a link to one of my NON-PROFIT POLITICAL sites included in my signature as ALLOWED by the rules of the forum, when one goes to my NON-PROFIT POLITICAL website and one scrolls the full page one would see adds for the webhosts I am using at the moment GODADDY, now by mentioning GODADDY does that constitute as spam? Because there CRAP which makes it anti-spam in actual fact, now I don't want adds for GODADDY on my website but you can't get rid of them. Now when I get my new non-profit POLITICAL site up on my new webhost provider I will have a link to it in my sig. as per the TSG rules , it will also have a link to the provider which ID's the hits from my site to there homepage so that if any new customers sign up for hosting I will get credits towards my hosting bill,is that spam?
In the end I was only trying to help the guy find a host that suited he/she's needs as stated and my provider fits there requirements perfectly,what a heinous crime ,now the thread was asking for hosting info yet you post rules that state ....
Quote:
EXCEPTIONS (may be objected to, at the discretion of the moderators)
Unaffiliated Announcements - If you see a great deal somewhere, you're welcome to share it with everyone by posting it in the "General Opinions and Reviews" forum if and only if you are completely unaffiliated with that deal.
This thread seems to contradict the rules as its not in "General Opinions and Reviews" forum
Now the rules state you cannot benefit from a link yet you can include a link to your own company in your signature which you could clearly gain benefit from ,you know these rules read out very hypocritically when you think about it ,they contradict themselves ,which needs sorting out.
I don't get spam nor do I send it and do not appreciate being called a criminal as spamming is a criminal act and by calling/implying I am a spammer you are calling me a criminal,are you sure about the words you have used here as they are dubious!? I'm very unhappy about being called a criminal!!!!!
__________________
"I do not know with what weapons World War 3 will be fought, but World War 4 will be fought with sticks and stones."
Albert Einstein

"In a time of universal deceit - telling the truth is a revolutionary act."
George Orwell

YOU TEST FIRST.ORG

You Test First Forums

Last edited by Hierophant : 24-Nov-2005 11:57 AM.
Gibble's Avatar
Distinguished Member with 27,137 posts.
 
Join Date: Oct 2001
Location: Striking or Scoring
Experience: The Alpha and Omega
24-Nov-2005, 12:01 PM #15
Quote:
Originally Posted by Hierophant
Gibble who knows everything about everything
Thanks...I agree with that

Secondly, this is supposed to be about helping hicksjt with his/her problem, if you have an issue with the mods, perhaps you should PM the mod, not post to this topic with an extraneous post to defend yourself that really doesn't belong here.

Back to the topic at hand.

hicksjt, have you resolved this problem? Have you tried the .htaccess method?
__________________
izme: You know...it's kind of nice to sit atop Civilized debate and look down below on all of the uncivilized master debating we are here...just out of the fight zone

Gibble: Now you know what it's like to be Canadian.
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 09:36 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.