title: How to create mod rewrite rule for simple api
body: <p>I want to make my first api, but im having trouble setting up the urls. The api url is here:</p>
  
  <pre><code>http://tools.fifaguide.com/api/
  </code></pre>
  
  <p>So for example if some one goes to:</p>
  
  <pre><code>http://tools.fifaguide.com/api/player/messi
  </code></pre>
  
  <p>Then I need this page to be loaded:</p>
  
  <pre><code>http://tools.fifaguide.com/api/server.php
  </code></pre>
  
  <p>What do I write in .htaccess? and where should I put it?</p>
  
  <p>This is what I have right now:</p>
  
  <pre><code>RewriteEngine On
  RewriteRule ^api http://tools.fifaguide.com/api/server.php
  </code></pre>
  
  <p>But it doesnt do anything, also the htacces file is in the api folder.
  Any help would be really apreciated!</p>