Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm using shared hosting on which I host a website and have got some "parked domains" (they show the same content as the master domain). I'd now like to catch those domains and show different content, effectively having separate websites for them.

I can change the DNS records and the .htaccess file, but I either end up creating endless loops or getting a 500 server error.

If a user visits domain1.com they are shown content from the www directory. I'd like this to stay this way.

I'd like it so that if users visit domain2.com they're shown content from the domain2 directory. The highest level at which I can create folders is /home/myaccount/www/ - this means that in the example above the content for domain2 would be stored in /home/myaccount/www/domain2

Can I achieve what I want using only DNS settings and url rewriting, or do I need to upgrade my hosting?

Any help would be greatly appreciated!

Thanks.

share|improve this question
    
you need to write yourself a little bit of code that loads a page depending on the domain used to connect :-) –  Ash Palmer Oct 29 '10 at 12:35
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.