Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

301 Redirect with complete url

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 is domain2.com a subdomain of domain1.com, or are they two entirely different things? htaccess should do that unless your syntax is off.

You mentioned that the htaccess for domain1 also applies to domain2...Where is your htaccess file located?

Try these:

http://www.orderofbusiness.net/blog/redi...-htaccess/
http://enarion.net/web/htaccess/migrate-domains/


Possibly Related Threads...
Thread / Author Replies Views Last Post
by a_different_usernameJan 7, 2019 12:27 PM 0 166 Jan 7, 2019 12:27 PM
Last Post: a_different_username
[Wordpress] by Snowf0xOct 14, 2018 02:18 PM 1 121 Oct 14, 2018 02:18 PM
Last Post: Jdxo
by MaxiPads889May 17, 2017 08:23 PM 0 123 May 17, 2017 08:23 PM
Last Post: MaxiPads889