Question: I have the following URL:

```
http://domain.com/index.php?m=feedback&cSubject=My Subject

```

I want to have a rewrite rule so that the following:

```
http://domain.com/feedback?Subject=My Subject

```

maps to the previous url. Heres my rule at the moment:

```
RewriteRule ^feedback?Subject=(.*)$ index.php?m=feedback&cSubject=$1

```

Doesn't seem to be working tho! Any ideas?

Answer: 
You can use RewriteCond statement to do exactly what you want:

```
RewriteEngine On

RewriteCond %{QUERY_STRING} Subject=(.*)
RewriteRule ^feedback$ index.php?m=feedback&cSubject=%1 [L]

```
There seems to be an = missing from clops answer to give.. 

```
RewriteRule ^feedback/?$ index.php?m=feedback&c=%{QUERY_STRING} [NC,L]

```

.. at least I need one to make it work.