title: Redirect .html but not .html?with=options
body: <p>I'm currently using an .htaccess to get round a problem with a CMS, nothing major and an htaccess fix is tidy enough.</p>
  
  <p>I'm currently using the format...</p>
  
  <p>redirect 301 /pictures.html <a href="http://www.domain.com/gallery.html" rel="nofollow noreferrer">http://www.domain.com/gallery.html</a></p>
  
  <p>The problem though this causes is that the CMS uses pictures.html?vars=here to select galleries and so the redirect breaks this part of it. Is there any way I can redirect pictures.html but not when it has variables attached?</p>