2

我的博客位于 /blog,内容是动态的。

我希望 /index.php 在我的网站上镜像 /blog

如何编写 index.php 来镜像动态网页?

4

1 回答 1

2

你真的应该转发它,否则你会被搜索引擎发现重复的内容。如果您对人们通过搜索找到您的内容感兴趣,这对您来说应该很重要。

index.php 应该有以下代码:

<?php
    header('Location: /blog', true, 301);
    exit;
?>
于 2010-08-08T23:28:28.423 回答