(redirect) - . URL . , , URL-, .
HTML- <meta>
. :
<meta http-equiv="refresh" content="0;url=https://--">
0 , , https://-- - URL.
JavaScript . :
<script>
window.location.href = "https://--";
</script>
.
HTTP- . 301 ( ) 302 ( ). -.
Apache ( .htaccess):
Redirect 301 /-URL https://--
Nginx:
location /-URL {
return 301 https://--;
}
. , PHP:
<?php
header("Location: https://--", true, 301);
exit();
?>
, header()
HTTP- Location URL, 301 .
. -, HTTP- , .