Hi all I need a bit of getting a redirect working in mod_rewrite.
I need to redirect the following
http://mysite.com/dictionary/find?word=test
to
http://mysite.com/dictionary/find?w=test
I'm sure the solution is trivial enough but my knowledge of mod_rewrite and regular expressions is quite limited and I haven't been able to work out. This is what I have attempted so far to no avail.
RewriteCond %{QUERY_STRING} word= [NC]
RewriteRule ^/(.*)word=(\w+)/$ /w=$1 [L]
Any help would be much appreciated. Thanks.