# Mod rewrite help

**URL:** <https://forum.kirupa.com/t/mod-rewrite-help/312971>\
**Category:** Uncategorized\
**Created:** [August 17, 2010, 3:11am UTC](https://forum.kirupa.com/t/mod-rewrite-help/312971 "2010-08-17T03:11:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![natronp](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@natronp](https://forum.kirupa.com/u/natronp)\
**Post date:** [August 17, 2010, 3:11am UTC](https://forum.kirupa.com/t/mod-rewrite-help/312971/1 "2010-08-17T03:11:34Z")

</div>

pointing old domain at new domain and need to rewrite old domain urls like:

[www.olddomain.com/index.php?flurgen=0&flurg=1](http://www.olddomain.com/index.php?flurgen=0&flurg=1)

to:

[www.mynewdomain.com/index.php?prev=1](http://www.mynewdomain.com/index.php?prev=1)

i am totally new to mod rewrite and would love some help getting this straight before i add it to the existing .htaccess file on the new domain. Here’s what i have:

```auto
Options +FollowSymlinks
RewriteEngine on

RewriteCond %{HTTP_REFERER} olddomain.org [NC]

RewriteRule ^(.+)$ index.php?prev=1 [QSA]

```
