views:

25

answers:

0

Hello,

Can you help me solve this problem, please.

In my .htaccess file I used this rewrite rule:

rewriteRule ^country/([0-9]+)/([0-9]+)/([0-9]+)/(.*)/(.*)?$ search.php?loc1=$1&loc2=$2&loc3=$3 [L] 

To get this kind of urls:

/country/13/196/2693/germany/frankfurt

Everything works fine, but I get unwanted duplicate URLs also:

/country/13/196/2693/germany/frankfurt?loc1=13&loc2=196&loc3=2693

Both links are working.

Where I made mistake, and what is causing duplicate URLs?

P.S. In my .htaccess file I have more rules and redirects, but I hope that is not related with this problem.

Thanks in advance!

Best regards

Ed