リダイレクトしたい
http://www.mydomain.com/ladies-boots/?shoesize=43&calfwidth=K
に
http://www.mydomain.com/ladies-boots/#nogo&landing_sef_url=&producttype=
ladies-boots&shoesize=43&calfwidth=K
現在、以下のコードを使用していますが、機能していません。
RewriteCond %{QUERY_STRING} ^ladies-boots/?shoesize=([0-9]+)\&calfwidth=([A-Z])$
RewriteRule ^.*$ http://www.mydomain.com/ladies-boots/#nogo&landing_sef_url=&producttype=ladies-boots&%1 [R=301,L]
この問題について私を助けてください。
これは私の更新された最新のコードです、
RewriteCond %{QUERY_STRING} ^shoesize=([0-9]+)\&calfwidth=([A-Z])$
RewriteRule ^ladies-boots/$ http://www.mydomain.com/ladies-boots/#nogo&landing_sef_url=&producttype=ladies-boots&shoesize=%1&calfwidth=%2? [R=301,L]