How does apache redirect 301? I hope there is a video tutorial
You can use header for redirection, you can also modify the apache configuration file or add a .htaccess file
<?php// 301 Moved Permanentlyheader("Location: /foo.php",TRUE,301);// 302 Foundheader("Location: /foo.php",TRUE,302);header("Location: /foo.php");// 303 See Otherheader("Location: /foo.php",TRUE,303);// 307 Temporary Redirectheader("Location: /foo.php",TRUE,307);?>
You can use header for redirection, you can also modify the apache configuration file or add a .htaccess file
<?php
// 301 Moved Permanently
header("Location: /foo.php",TRUE,301);
// 302 Found
header("Location: /foo.php",TRUE,302);
header("Location: /foo.php");
// 303 See Other
header("Location: /foo.php",TRUE,303);
// 307 Temporary Redirect
header("Location: /foo.php",TRUE,307);
?>