Php 使用原始标题和说明重定向
我需要重定向页面,同时保持原始页面(而不是重定向到的页面)共享标题、说明和图标 所以在这个例子中,Whatsapp等中的共享预览会显示Title而不是GooglePhp 使用原始标题和说明重定向,php,html,apache,url-redirection,Php,Html,Apache,Url Redirection,我需要重定向页面,同时保持原始页面(而不是重定向到的页面)共享标题、说明和图标 所以在这个例子中,Whatsapp等中的共享预览会显示Title而不是Google <!doctype html> <html class="no-js" lang=""> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> &l
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Title</title>
<meta name="description" content="Download now">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="manifest" href="site.webmanifest">
<link rel="apple-touch-icon" href="icon.png">
<!-- Place favicon.ico in the root directory -->
</head>
<body>
<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: google.com");
?>
</body>
</html>
标题
这是不可能的,重定向是不可能的。您可以为bit.ly链接设置标题,但否?他们是怎么做到的。你能和我分享一个简单的例子吗?嗯,我想我错了!是的,所以肯定没有解决这个问题的办法:(即使使用不同类型的重定向?我唯一能想到的是某种iframe或反向代理。但这仍然会在客户端的地址栏中显示您的域名。