跳转代码如下(举例说明的链接):
在index.php文件添加一下代码:
$url = ‘域名/链接.html’;
if($url == $server) { header(‘HTTP/1.1 301 Moved Permanently’);
header(“Location:/seo/链接.html”);
![301跳转代码](https://www.bailuze.com/wp-content/uploads/2024/03/20240315102405.png)
👋 感谢您的观看!
© 版权声明
THE END
跳转代码如下(举例说明的链接):
在index.php文件添加一下代码:
$url = ‘域名/链接.html’;
if($url == $server) { header(‘HTTP/1.1 301 Moved Permanently’);
header(“Location:/seo/链接.html”);
👋 感谢您的观看!