While using a WordPress maintenance plugin, I ended up with this query string URL that I now need to redirect to root when the site goes live.
http://mydomain.com/maintenance/?req=http%3A%2F%mydomain.com%2F
What will redirect that URL to simply http://mydomain.com?
I've tried both of these:
Redirect 301 "http://mydomain.com/maintenance/?req=http://mydomain.com/" http://mydomain.com
Redirect 301 "http://mydomain.com/maintenance/?req=http%3A%2F%mydomain.com%2f" http://mydomain.com