December 20, 2015 How to Redirect to Another Website Using PHP By Krishnaa PHP Questions 0 Comments To redirect to another website in PHP, we make use of header function. Sample code is given below: <?php header('Location: http://www.google.com/'); exit; ?> 123456 <?php header('Location: http://www.google.com/');exit; ?> You May Also Like: Browsing A Website Without Registration Using Mozilla Firefox How to Get Array Length in PHP