1

別のページにリダイレクトするインデックスページがあるとしたら、検索エンジンがサイトのインデックスを作成するときに、リダイレクトに従い、リダイレクト先のページをスキャンしますか?適切なSEOのためにメタタグを使用してリダイレクトページに単純なhtml構造を配置する必要があるかどうか疑問に思います。

4

2 に答える 2

2

ページの場所が変更された場合は、301リダイレクトでPHPヘッダー関数を使用して、ページが移動したことを検索エンジンに通知します。

header ('HTTP/1.1 301 Moved Permanently');
header ('Location: '.$location);

これはSEOの観点から最も適切な方法です。

于 2012-04-04T14:50:43.040 に答える
1

Yes, they will follow your redirection and no, you do not need to send any HTML content when redirecting a request.

Also, they are aware of the type of the redirection, according to the HTTP header you sent.

Under the 3XX section, you can find the list of possible redirections: http://en.wikipedia.org/wiki/List_of_HTTP_status_codes

于 2012-04-04T14:43:22.483 に答える