My old blog listed entries in the format www.mysite.com/?entryid=123. The new blog uses www.mysite.com/?p=123. How would I redirect the old addresses to new? Thanks.
RewriteRule never sees the querystring when it comes to the pattern, only the URI. If there's no other GET variables on the querystring, this should work fine assuming all other directives are fine. RewriteCond %{QUERY_STRING} ^entryid=([0-9]+)$ RewriteRule ^/?(.*)$ http://domain.com/$1?p=%1 [R=301] Code (markup):