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.
URL の 1 つに誤って空白を含めてしまい、Google にインデックスされてしまいました。空のスペースで URL を 301 リダイレクトする方法を知っている人はいますか? 次のことを試しましたが、うまくいかないようです
RewriteRule ^white-space%20-here(.*)$ http://abc.com/no-white-space-here$1 [R=301]
ありがとう。
エンコードされた URL ではなく、空白と照合する必要があります%20。URL は、書き換えエンジンを介して送信される前にデコードされます。
%20
RewriteRule ^white-space\ -here(.*)$ http://abc.com/no-white-space-here$1 [R=301]