検索エンジンはパラメーターを使用してサイトをクロールします
/?p=([0-9]+)
/?cat=([0-9]+)
/?do=([a-z]+)
等
そのようなページがもう存在しないことを検索エンジンに通知するには、.htaccess をどのように作成しますか?
/?page=([0-9]+) しかありません
ありがとう。
私は試した
RewriteCond %{QUERY_STRING} ^(p|cat|do)(.*)$
RewriteRule ^$ http://test.com/simple [R=301,L]
しかし
http://test.com/?p=23 give me http://test.com/test?p=23 (not http://test.com/test)
http://test.com/?cat=11 give me http://test.com/test?cat=11 (not http://test.com/test)