Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

2 websites on one hosting account

Status
Not open for further replies.

okigram

Programmer
Nov 26, 2002
14
US
Excuse me... but I'm somewhat lost. If someone could point me in the correct direction I'd appreciate it.

How does one host multiple websites on one hosting account. The web host is iPower Pro Plan which says you can have multiple domains on the account. Do I need to do something with the .htaccess file???

Thanks in advance
 
Most hosts provide control access via Control Panel. Start there, and if it isn't obvious, try the host FAQ page or their support system.

If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
Yes, you can do that with a few different methods. The one that works best will depend upon your specific situation, such as what you are using to build your sites.

With the drupal cms, using one .htaccess file in the root, and then another .htaccess in each drupal site's folder works well for me.

There is lots of info out there about the .htaccess file, how to use and all of that. My suggestion is to do your research, take your time, and don't get frustrated.

Here's one site I've found that had some good info (for my situation) - not sure whether it'll help you or not:

But there are other sources out there as well. I know I've found a lot of info (some useful, some not - for me) on the drupal.org forums as well.

I'm assuming that since you're mentioning the .htaccess file, that you're using some dynamic, apache/php based tools to build your sites. If not, if you've got static html sites, then you might want to just work out a quick forward/redirect using your adminitration pages (cpanel is quite common, some hosts, such as 1and1 has their own user interface)

Another thought is to work through your domain registrar, possibly. It depends upon how much control you want over how the link shows up, and all of that. If you're using apache, and can use .htaccess, then I think you'll end up with more control.... but of course, you can break it more easily as well. Once you do find something that works for you, BACK IT UP somewhere other than your web server... from reading some folk's posts, I'd say make sure its' backed up to at least 3 locations - makes sense to me.

And also, if you do any manual editing of your .htaccess file, be sure to document how you did what you did, why you did it, and where you go the info from, at least that's what makes sense to me. That way, if you want or need to change it later, you may leave yourself some breadcrumbs along the way towards getting it done more quickly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top