Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php permanent redirect to url

// Redirect page perminately
header("HTTP/1.1 301 Moved Permanently");
header("Location: https://www.yourfancynewsite.com/mypage.php");
exit();
Comment

PREVIOUS NEXT
Code Example
Php :: woocommerce get product category name by id 
Php :: php version compare function 
Php :: Laravel validating birthdate by 13 years old 
Php :: php check version ubuntu 
Php :: explode in php 
Php :: loop index foreach laravel 
Php :: Array Contant PHP 
Php :: php all date formats 
Php :: how send parameter with command in laravel 
Php :: laravel login redirect to previous page 
Php :: laravel nigerian time zone 
Php :: laravel make directory 
Php :: php closecursor 
Php :: php create zip from folder 
Php :: remove all items of an array except the last one in php 
Php :: ob_start in php 
Php :: laravel collection chunk 
Php :: php create url with query sting from array 
Php :: program-generate-random-alphabets using php 
Php :: php month single digit 
Php :: get template part wordpress 
Php :: make select element readonly 
Php :: laravel run seeder enter timestamps 
Php :: how to replace multiple characters in a string in php 
Php :: wp logs 
Php :: php setinterval 
Php :: upgrade php linux 
Php :: permissions for laravel deployment 
Php :: php error reporting 
Php :: check if a string contains a substring in php 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =