title: htaccess mod rewrite. What am I doing wrong?
body: <p>I was wondering if someone could shed some light on where I'm going wrong here. I'm trying to make it so that if a user came to my site (in dev mode at the minute so localhost) and used the url for example <a href="http://localhost/example/aquery/string" rel="nofollow">http://localhost/example/aquery/string</a>.</p>
  
  <p>The url it would actually access it <a href="http://localhost/example.php?route=aquery/string" rel="nofollow">http://localhost/example.php?route=aquery/string</a>. Is this possible? Here's what I have so far...</p>
  
  <pre><code>Options +FollowSymLinks
  Options All -Indexes
  Options +MultiViews
  RewriteEngine on
  RewriteCond %{REQUEST_FILENAME} !-l
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)/(.*)$ $1.php?route=$2 [L]
  DefaultType application/x-httpd-php
  
  &lt;files .htaccess&gt;
  order allow,deny
  deny from all
  &lt;/files&gt;
  </code></pre>
  
  <p>Any help appreciated. </p>
  
  <p>Many thanks
  James</p>