I want to do permanent redirect using htaccess. For eg :- I want to redirect /modules/pages/?pageid=7 to http://www.xxx.com/aaa/.
This is what i have done Redirect permanent /modules/pages/?pageid=7 http://www.xxx.com/aaa/
but it gives me 404 error.