title: hide parameter (query string) in url (htaccess) but send this parameter to a page (php)
body: <p>How to hide parameters (query_string) in url but send them to page hidden, not visible in address bar
  <br>
  example:<br>
  I have this:<br></p>
  
  <pre><code>http://localhost/index.php?sent=true
  </code></pre>
  
  <p>i want:</p>
  
  <pre><code>http://localhost/index.php
  </code></pre>
  
  <p>but i want to get sent parameter in PHP $_GET['sent']</p>
  
  <p>i tried to redirect to page with no parameters(no query_string) [R] and after that give page some parameters (silently) without [R] redirection (without changing adress itself)</p>
  
  <p>i tried to use RewriteRule in htaccess with different flags and different ways but nothing worked</p>
  
  <p>i learned that if i want to change address in browser, i must use R flag with L flag in one RewriteRule line - other way it does not work - adress does not change</p>
  
  <p>but when i use [L] flag i cannot go to next line(next RewriteRule) and append any query_string to address without [R] redirection</p>
  
  <p>if i don't put an [L] flag in first line (with [R]) i don't have new address but if i do - i can't use [C] flag or even [N] flag</p>
  
  <hr>
  
  <p>Here is why:</p>
  
  <p>on my page i use header('Location: ...?sent=true') function after successful data sent from Form
  i redirect to ?sent=true because of i don't want to user refresh page and send the same data again</p>
  
  <p>but after redirect to ?sent=true i don't want to have that query_string in address bar
  there are more forms on that page that will send other POST data and refresh page with this ugly query_string there</p>
  
  <p>how to do that?</p>