I have domian domain1.com and 2nd domain2.com i cpanel. domain1.com is main domain domain2.com is addon domain
So domain1.com and domain2.com are in same account.
I tried redirect 301 /free www.domain2.com/free
But it gives be error because .htaccess of domain1.com i also applicable to domain2.com
What i require is when some one try to open domain1.com/free they need to automatically redirect to domain2.com/free . How can i achieve it, If they are both under same account.
Is is possible to use complete url in 301 redirect or is there any other way.I tried a lot of codes from internet none works.
My url structure is like this.
https://domain1.com/account/upgrades
http://domain2.com/account/upgrades
So domain1.com and domain2.com are in same account.
I tried redirect 301 /free www.domain2.com/free
But it gives be error because .htaccess of domain1.com i also applicable to domain2.com
What i require is when some one try to open domain1.com/free they need to automatically redirect to domain2.com/free . How can i achieve it, If they are both under same account.
Is is possible to use complete url in 301 redirect or is there any other way.I tried a lot of codes from internet none works.
My url structure is like this.
https://domain1.com/account/upgrades
http://domain2.com/account/upgrades




![[Image: uwAFKY3.png]](https://i.imgur.com/uwAFKY3.png)