# Mod\_rewrite help

**URL:** <https://forum.kirupa.com/t/mod-rewrite-help/203497>\
**Category:** programming\
**Created:** [October 11, 2006, 3:48pm UTC](https://forum.kirupa.com/t/mod-rewrite-help/203497 "2006-10-11T15:48:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoshuaJonah](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joshuajonah/32/1775_2.png) [@JoshuaJonah](https://forum.kirupa.com/u/JoshuaJonah)\
**Post date:** [October 11, 2006, 3:48pm UTC](https://forum.kirupa.com/t/mod-rewrite-help/203497/1 "2006-10-11T15:48:05Z")

</div>

I’m working on a site where the URL vars have shifted because they migrated their database. For example “[www.website.com/pages/search\_details?tourid=ETTD000001](http://www.website.com/pages/search_details?tourid=ETTD000001)” changed to “[www.website.com/pages/search\_details?tourid=ETWT00000001](http://www.website.com/pages/search_details?tourid=ETWT00000001)”. These will be eliminated over tima as the id’s are always incrimenting and they remove the old ones so i want to setup a mod\_rewrite. However mod\_rewrite hates me and will not cooperate. I have tried:

```auto
RewriteEngine on 
RewriteRule ^/search_details?tourid=ETTD000001$ /search_details?tourid=ETWT00000001 [R,NC,L]

```

and putting that in a “.htaccess” in the pages folder. doesn’t even try.

Any ideas?

JJ
