PHP

PHP 301 redirect

PHP 301 redirect code example;

[php]

<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: https://www.mehmetdenizer.com/");
?>

[/php]

 

PHP 301 Yönlendirme

Wrong code;

(Php 302 redirect code)

[php]

<?php
header("Location: https://www.mehmetdenizer.com/");
?>

[/php]

 

Başa dön tuşu