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

Just a short and easy question, I hope. Currently, I've got a primary domain linked to my (virtual) hosting server. I now have a second domain name which I would like to link to a specific subdomain, i.e.

domainB.com/X -> subdom.domainA.com/X

Preferably without having this redirect show up in the address bar. Can this be achieved through DNS settings alone, or would it require me to add a .htaccess file in Domain A's root folder?

share|improve this question

migrated from stackoverflow.com Mar 13 '10 at 19:42

This question came from our site for professional and enthusiast programmers.

1 Answer 1

I think you are talking about Addon Domains. With AD you can have:

domainA.com or anything.subdomainA.com/anything working under domainA.domainB.com

but always showing domainA.com in the browser's address bar

correct me if I'm mistaken

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.