Neil_Bradley
asked on
arked domain redirect
I am attempting to use an htaccess file to
1. re direct a parked domain to a subdirectory
2. Mask the url so that instead of showing this: www.primaryDomain.com/myParkedDomainSubdirectory/
only the parked domains name shows (ie www.myParkedDomain.com instead of www.primaryDomain.com/myParkedDomainSubdirectory/)
Can anyone show me best practice to achieve this on an Apache server?
The code attached is what I have so far..
Cheers,
N
1. re direct a parked domain to a subdirectory
2. Mask the url so that instead of showing this: www.primaryDomain.com/myParkedDomainSubdirectory/
only the parked domains name shows (ie www.myParkedDomain.com instead of www.primaryDomain.com/myParkedDomainSubdirectory/)
Can anyone show me best practice to achieve this on an Apache server?
The code attached is what I have so far..
Cheers,
N
RewriteRule ^parked-directory - [L]
RewriteCond %{HTTP_HOST} ^(www\.)?myParkedDomain\.com$ [NC]
RewriteRule ^(.*)$myParkedDomainSubdirectory/$1 [L]
ASKER
Or have it as an add on domain as opposed to a parked domain?
N
N
I don't understand the question you are asking.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Great answer and many thanks for your help.
Cheers,
Neil
Cheers,
Neil
No problem. You are always welcome :)
Open in new window