December 20, 2015 HomePHP QuestionsHow to Redirect to Another Website Using PHP 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; ?> You May Also Like: How to Redirect to Another Page using Javascript and HTML Browsing A Website Without Registration Using Mozilla Firefox How to Disable Right Click on Website using Javascript