title: Redirect ?q=user/register to the base url using .htaccess in Drupal 7
body: <p>In our drupal 7 site we were not providing user registration and redirect the the user/register page to the base url using .htaccess.</p>
  
  <pre><code>#Custom redirects
  
  RewriteRule ^user/register$ http://%{HTTP_HOST} [R=301,L]
  
  #End Custom redirects
  </code></pre>
  
  <p>It is working and now I need to redirect '?q=user/register' also to that base url. When I tried with</p>
  
  <pre><code>  RewriteRule ^?q=user/register$ http://%{HTTP_HOST} [R=301,L]
  </code></pre>
  
  <p>but it was not working.</p>