title: htaccess include query string
body: <p>I know similar questions have been asked a lot of times, but mine is a bit different.</p>
  
  <p>This is my code:</p>
  
  <pre><code>RewriteRule ^activate$ activate.php
  </code></pre>
  
  <p>When the user requests <code>/activate?q=foo</code> I want the user redirected to <code>/activate.php?q=foo</code>
  Currently it just truncates the query string and redirects the user to <code>/activate.php</code>.</p>
  
  <p>Now, I've tried the <code>[QSA]</code> flag, but it seems to force a 301 redirect, which is not an option in this case.</p>
  
  <p>I've also tried the stuff with <code>$1</code> and so on but I simply couldn't get it to work.</p>
  
  <p>I did a Google Search before asking this question. I went to page 10 on Google on <code>htaccess include query string</code> before I decided to ask here.</p>
  
  <p>And just to repeat, a 301 redirect is not an option, it has to stay on the same page, but load the other one (I think it's called an internal redirect, I'm not sure though).</p>
  
  <p>Thank you very much in advance.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p><a href="https://stackoverflow.com/posts/comments/34289169?noredirect=1">As Mike S. requested</a>, here is my full htaccess:</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{HTTPS} off
  RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
  
  RewriteRule ^feedback$ feedback.php
  RewriteRule ^roomie$ roomie.php
  RewriteRule ^nyroomie$ addroomie.php
  RewriteRule ^registrer$ register.php
  RewriteRule ^activate$ activate.php
  
  AuthName "Restricted Area" 
  AuthType Basic 
  AuthUserFile *CENSORED*/.htpasswd
  require valid-user
  </code></pre>