Please help, I'm trying to figure out how to 301 redirect from http://www.domain.com/?rated to http://www.domain.com/top and also redirect second type of url from http://www.domain.com/?s=free+files to http://www.domain.com/sh.php?q=free+files Thanks in advance.
I would suggest a different pattern on your second request. You want requests to the page: www.mysite.com/free-files to be rewritten to www.mysite.com/sh.php?q=free-files you can do this by using the following rule: RewriteRule ^([A-Za-z0-9-\.]+)/?$ q.php?s=$1 [L]