Redirect Full Domain to Another Domain

Discuss issues related to custom PHP websites here.
I Want To Redirect
ygsbhardwaj(dot)com/best-hosting to

and Than expect that slug whole domain it to Different domain
ygsbhardwaj(dot)com to

Anyone Here Who Can Provide Me the Complete htaccess Code to Do This

Can You Plz Answer on this

For your first requirement you can use the following rule:

Redirect 301 /oldpage.html

For your send requirement you can use this rule:

Redirect 301 /

Note: Take a backup of your existing .htaccess file prior to making any changes.

Ibad Rehman