title: PHP url # split
body: <p>I have a .htaccess file with those contents:</p>
  
  <pre><code>RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ([^/\.]+)$ index.php?string=$1&amp;match=all [L]
  </code></pre>
  
  <p>So when I type: domain.com/test
  the page redirects to <em>domain.com/index.php?string=test&amp;match=all</em></p>
  
  <p>But if I want to reach this page: domain.com/test#sub1</p>
  
  <p>the page redirects to <em>domain.com/index.php?string=<strong>test</strong>&amp;match=all</em></p>
  
  <p>instead of <em>domain.com/index.php?string=<strong>test#sub1</strong>&amp;match=all</em></p>
  
  <p>How do I proceed?</p>