Do I need a special ISP package to do a file hosting site?

How do I manage two domains on the same hosting package?

  • I'm new to editing .htaccess files, and I'd like some help managing multiple domains on one hosting package. I'm trying to setup a website for my wife - she's registered her own domain, and I offered to host it for her. But I can't for the life of me figure out how to get both of our domains to resolve on my hosting package. As it is, my website (let's call it www.foo.com) is up and running. I want her domain (let's call this one www.bar.com) to resolve as that domain - all I can seem to figure out to do is set up bar.foo.com, which is not what I want. I *think* this requires editing the .htaccess file, but I can't for the life of me figure out what I'd need to do. I can pay my web host to do this, but they're just going to put a frame around my wife's site and pull in content from a subdirectory, which seems unelegant and somehow backwards. So - how do I get two domains running on one share of webspace? Thanks in advance

  • Answer:

    .htaccess is enough, if mod_rewrite is available AND you're not using virtual hosting (i.e., you have your own IP address). Cheap hosting often uses virtual hosting (many domains on one IP address), and in that case this won't work. http://articles.techrepublic.com.com/5100-3513-6042903.html Your hosting provider sounds a little clueless, which is not really a good sign.

rocketman at Ask.Metafilter.Com Visit the source

Was this solution helpful to you?

Other answers

htaccess isn't enough. The hosting provider has to configure the webserver to know about it first. If your package doesn't let you host two domains, you can't do it on your own.

mendel

Yep, htaccess does not configure virtual hosts, which is what you're talking about doing. If your host uses cpanel and there isn't an option to add another domain then your package doesn't allow what you're trying to do, so you'll have to either get a new host or get a different package.

Rhomboid

And I might add, that this is one of the main features (along with disk space and transfer) that shared web hosts use to discriminate their pricing packages, e.g. the starter will usually allow only one domain, the midrange will allow 5 or 10, and the top level or reseller package will allow unlimited domains.

Rhomboid

This depends on the hosting package; not all of them let you do this. http://insiderhosting.com has a few packages, on the pricey side but may be helpful.

divabat

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.