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.

I have run into a problem which is that my web host doesn't appear offer addon domains.

I currently have a domain name pointing to my name servers.

I went into cPanel to add an addon domain that points to a sub-directory, but all that is available in cPanel is to park domain at the document root which is 'public_html/'.

So traffic coming from the parked domain would get the wrong content, which is obviously not good.

I get the feeling that this isn't possible, but can I change the parked domain document root from 'public_html/' to 'public_html/sub-directory' ?

Or perhaps can I edit the .htaccess file to redirect traffic from the parked domain to the sub-directory?

Basically I want this address; www.parked-domain.com/

To show the content of this sub-directory; www.first-domain.com/parked-directory

I hope this is possible otherwise I need to look at a new web host.

Regards,

Dean.

share|improve this question

2 Answers 2

up vote 0 down vote accepted

No, its is not possible.

Parked domains does not have any hosting space. It can only mimic the main domain with different name.

share|improve this answer
    
Yeah I thought so, wishful thinking I guess.. Thanks for the reply. –  user77996 Apr 11 '11 at 15:00
    
So do you think the best option would be to switch web host provider? –  user77996 Apr 11 '11 at 15:07

Try the technique from Pointing parked domain to a sub-directory.

Supposing the Parked domain is parked.com and the folder inside the main site is /parked, use this rules:

RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} parked.com
RewriteCond %{REQUEST_URI} !parked/
RewriteRule ^(.*)$ parked/$1 [L]
share|improve this answer
1  
Welcome to Server Fault! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. –  Iain Mar 15 '12 at 18:16

Your Answer

 
discard

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.