Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的博客位于 /blog,内容是动态的。
我希望 /index.php 在我的网站上镜像 /blog
如何编写 index.php 来镜像动态网页?
你真的应该转发它,否则你会被搜索引擎发现重复的内容。如果您对人们通过搜索找到您的内容感兴趣,这对您来说应该很重要。
index.php 应该有以下代码:
<?php header('Location: /blog', true, 301); exit; ?>