title: How to rewrite htaccess flat link to real query url
body: <p>I read a lot of Q&amp;As here but failed to find a working solution. I want to change the URL from a flat link syntax to a "regular" query.</p>
  
  <p>How do I get from this:</p>
  
  <pre><code>http://localhost/start/__developer/pages/12016652
  </code></pre>
  
  <p>to this:</p>
  
  <pre><code>http://localhost/start/__developer/pages/suche.php?objektnr=12016652
  </code></pre>
  
  <p>by either means of htaccess or PHP? Disregard the curlies please. Thanks in advance for your support!</p>
  
  <p><strong>At this point I'm trying this:</strong></p>
  
  <pre><code>Options        +FollowSymLinks -MultiViews
  RewriteEngine  On
  RewriteCond    %{REQUEST_FILENAME} !-d
  RewriteCond    %{REQUEST_FILENAME} !-f
  RewriteBase    /start/__developer/immo-shg-v4/pages/
  RewriteRule    ^([0-9]+)$ suche.php?objektnr=$1 [QSA,L,NC]
  </code></pre>
  
  <p><strong>Solution:</strong></p>
  
  <pre><code>RewriteRule ^([0-9]+)$ suche.php?objektnr=$1 [L,NC,NE,R]
  </code></pre>
  
  <p>The [R] flag forces a redirect.
  <a href="http://httpd.apache.org/docs/2.2/rewrite/flags.html" rel="nofollow">http://httpd.apache.org/docs/2.2/rewrite/flags.html</a></p>