I have two links that are actually the same content, for some reason google traced it as two URL, one is:
http://www.shopious.com/items/818526/Celine-Trapeze-mini-Suede-1-warna-saja-185rb-
and the other one is:
http://www.shopious.com/items/818526/Celine-Trapeze-mini-Suede-1-warna-saja-185rb
I basically wanted to redirect the one that has the - at the end to the one that doesn't have the - . How can I do this in nginx?
You can use this rule :
rewrite ^/(items/[0-9]+/.+?)-$ /$1 permanent;
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다