How to redirect a page with 301 redirect (moved permanently) using header in PHP

2 Answers

0 votes
header("Location: https://www.seek4info.com", true, 301);

exit();  
  
     
/*
run: 
  
  
*/

 



answered Jun 25, 2024 by avibootz
0 votes
header("HTTP/1.1 301 Moved Permanently"); 
header("Location: https://www.seek4info.com"); 

exit();  
  
     
/*
run: 
  
  
*/

 



answered Jun 25, 2024 by avibootz
...