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 にミラーリングしたい
動的 Web ページをミラーリングするために index.php を作成するにはどうすればよいですか?
あなたは本当にそれを転送する必要があります。そうしないと、検索エンジンによって重複したコンテンツに悩まされます. 検索であなたのコンテンツを見つけてくれる人に興味があるなら、これは重要なことです。
index.php には次のコードが必要です。
<?php header('Location: /blog', true, 301); exit; ?>