# I use rewmode options for friendly link, now google indexing both link , 301 redi

**URL:** <https://forum.kirupa.com/t/i-use-rewmode-options-for-friendly-link-now-google-indexing-both-link-301-redi/326226>\
**Category:** Uncategorized\
**Created:** [November 30, 2011, 10:17am UTC](https://forum.kirupa.com/t/i-use-rewmode-options-for-friendly-link-now-google-indexing-both-link-301-redi/326226 "2011-11-30T10:17:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![autopolovnjaci](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@autopolovnjaci](https://forum.kirupa.com/u/autopolovnjaci)\
**Post date:** [November 30, 2011, 10:17am UTC](https://forum.kirupa.com/t/i-use-rewmode-options-for-friendly-link-now-google-indexing-both-link-301-redi/326226/1 "2011-11-30T10:17:02Z")

</div>

i use rewmode options for friendly link, now google indexing both link for the same file, so i get duplicate meta title, meta description…

example:

[http://www.autopolovnjaci.com/automobili3844/Seat\_Ibiza\_2003\_god](http://www.autopolovnjaci.com/automobili3844/Seat_Ibiza_2003_god)

[http://www.autopolovnjaci.com/index.php?action=polovni\_automobili&id\_oglas=3844](http://www.autopolovnjaci.com/index.php?action=polovni_automobili&id_oglas=3844)

For my case down, how to apply HTTP 301 permanent redirect to the new friendly URL.

RewriteEngine On  
RewriteBase /  
RewriteRule ^automobil([^&]+)/(._)\_(._)\_(.\*)/?$ /autopolovnjaci/index.php?action=polovni\_automobili&naz=$2&id\_oglas=$1&tip=$3&god=$4 [L]
