私はこの一見単純なリダイレクトタスクに何時間も取り組んできましたが、私の人生ではそれを実行できません。URLで1 または 19の値を渡すかどうかにかかわらず、どちらの場合もリダイレクトされます。http://mywebsite.com/catalogue-gifts/chicks。(理想的には、2番目の条件/ルールでユーザーをhttp://mywebsite.com/catalogue-gifts/mango-fruit-trees/に誘導する必要があります)
以下は私が持っているものです:
RewriteCond %{QUERY_STRING} pID=1<br />
RewriteRule ^product_details2\.asp$ http://mywebsite.com/catalogue-gifts/chicks$1? [L,R=301]
RewriteCond %{QUERY_STRING} pID=19<br />
RewriteRule ^product_details2\.asp$ http://mywebsite.com/catalogue-gifts/mango-fruit-trees$1? [L,R=301]
どんな助けでも大歓迎です..ありがとう