views:

218

answers:

1

Hi,

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?

+1  A: 

Query Strings are not parsed by Apache Mod_Rewrite, but there is a workaround. Try this

RewriteRule ^feedback/?$ index.php?m=feedback&c%{QUERY_STRING} [NC,L]
clops
Worked great thanks!
James