G
gopal
Guest
For Example I want point may Parked domain "aa.com" to my main domain "aa.ca". By default both are pointing to same location but when I accessing the aa.com in the browser it should redirect to "aa.ca" for this I have created a Sub domain in the name of "aa" and set the addon domain "aa.com", and I have created the .htaccess file inside the sub-folder and added the line like,
.htaccess file :-
RewriteEngine on
RewriteCond %{HTTP_HOST} ^aa.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.aa.com$
RewriteRule ^(.*)$ http://aa.ca [R=301,L]
it works fine
aa.com --> public_html/aa --->aa.ca
.htaccess file :-
RewriteEngine on
RewriteCond %{HTTP_HOST} ^aa.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.aa.com$
RewriteRule ^(.*)$ http://aa.ca [R=301,L]
it works fine
aa.com --> public_html/aa --->aa.ca