title: .htaccess php Rewrite view.php?visopslag=(id)
body: <p>I have to rewrite <code>www.url.com/opslag/view.php?visopslag=(id)</code> with htaccess to something more beautiful :o) Im creating a forum likely application. This is what i want to be rewrote: 
  My request is: </p>
  
  <pre><code>www.url.com/opslag/vis/id 
  </code></pre>
  
  <p>How can I do this? I've tried lots of different things like: </p>
  
  <pre><code>RewriteRule ^/opslag/([^/\.]+)/?$ view.php?vis=$1 [L]
  </code></pre>
  
  <p>My complete .htaccess: </p>
  
  <pre><code>RewriteEngine On  
  "#Rewrite view.php?vis=id  
  RewriteRule ^opslag/vis/([0-9]+)$ /opslag/view.php?vis=$1 [L,R,QSA]  
  
  "#Remove index.php  
  "#RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.php\ HTTP/    
  "#RewriteRule ^(.*)index\.php$ /$1 [R=301,L]  
  
  "#Remove /page/      
  "#RewriteCond %{REQUEST_FILENAME} !-f    
  "#RewriteCond %{REQUEST_FILENAME} !-d    
  "#RewriteRule ^([^/\.]+)/?$ index.php?page=$1 [L]
  </code></pre>