.htaccess - Change the document root of a parked domain? -
i have run problem web host doesn't appear offer addon domains.
i have domain name pointing name servers.
i went cpanel add addon domain points sub-directory, available in cpanel park domain @ document root 'public_html/'.
so traffic coming parked domain wrong content, not good.
i feeling isn't possible, can change parked domain document root 'public_html/' 'public_html/sub-directory' ?
or perhaps can edit .htaccess file redirect traffic parked domain sub-directory?
basically want address; www.parked-domain.com/
to show content of sub-directory; www.first-domain.com/parked-directory
i hope possible otherwise need @ new web host.
regards,
dean.
add following .htaccess file:
rewriterule ^parked-directory - [l] rewritecond %{http_host} ^(www\.)?parked-domain\.com$ [nc] rewriterule ^(.*)$ parked-directory/$1 [l]
Comments
Post a Comment