How to redirect website URL to some other URL

Redirecting URL to some other URL :

Add following code inside your .htaccess file:

Redirect http://www.sample.com/old http://www.sample.com/newurl