title: .htaccess Reroute file with hidden parameter to another file
body: <p>I have a problem which I'm trying to solve nor for hours.</p>
  <p>So in my root director i have a folder called <code>plugins</code> with some files in it. The important ones are <code>plugins.php</code> and <code>query.php</code>.</p>
  <p>When the url is /test/plugins I wan't to show the content of <code>plugins.php</code>. But when the URL is /test/plugins/param I wan't to keep this URL in the browser but want to show the content of <code>query.php</code> and use param with $_GET['param'] in it. Is this possible?</p>
  <p>My latest and most promising .htaccess file looks like this:</p>
  <pre><code>RewriteBase /test/
  
  RewriteEngine On
  
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-s
  RewriteRule ^(.*)$ query.php?param=$1 [QSA,NC,L]
  
  RewriteCond %{REQUEST_FILENAME} -d
  RewriteRule ^(.*)$ query.php [QSA,NC,L]
  
  RewriteCond %{REQUEST_FILENAME} -s
  RewriteRule ^(.*)$ query.php [QSA,NC,L]
  </code></pre>