私たちがseo監査を行っていた1.5年前のjoomlaサイトを持っているので、助けが必要です.URLが未定義のページが3000以上あることが意外にも見つかりました.
ex-1 間違った URL :
www.example.com/undefined/index.php?option=com_usedcar&view=search&Itemid=3
正しい URL -
www.example.com/index.php?option=com_usedcar&view=search&Itemid=3
ex-2 間違った URL :
www.example.com/undefined/index.php?option=com_forms&view=pages&layout=shop&Itemid=2
正しい URL -
www.example.com/index.php?option=com_forms&view=pages&layout=shop&Itemid=2
「未定義」という用語は、すべての重複コンテンツにつながるため、台無しになっています。未定義のページから未定義のページへの301リダイレクトを行う方法はありますか
ありがとう、期待して
アップデート
更新、このコードを使用してみましたが、まだ望ましい結果を得ることができません
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^.*/undefined.*$
RewriteRule .* / [L,R=301,DPI]
htaccess で上記のコードを使用して元の URL -
http://www.xxx.com/undefined/index.php?option=com_easyblog&view=entry&id=42&Itemid=91
新しい URL に変更されます -
http://www.xxx.com/?option=com_easyblog&view=entry&id=42&Itemid=91
undefined は削除されていますが、新しい URL に実際の正しい URL から index.php がありません。