简体   繁体   中英

redirect one domain to another using htaccess

I have a domain "xyz.com.au" which is hosted on godaddy.

I have another "xyz.com" which is not hosted.

I want that when user enter "xyz.com" in browser, they will automatically get re-directed to "xyz.com.au"(Without purchasing any new hosting plan for "xyz.com" )

How can i do that? What should i write in "htaccess" file of "xyz.com.au".

Many thanks in advance.

That is not possible to do. If the domain xyz.com does not exist then someone would see a DNS error in their Browser. Or if someone does own the xyz.com domain then they would be sent to that domain.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM