title: Getting apache to work with PHP for a REST server
body: <p>I'm trying to use the code provided in <a href="http://net.tutsplus.com/tutorials/other/a-beginners-introduction-to-http-and-rest/" rel="nofollow">this php REST tutorial</a> at the very top. The code is server.php and the apache config is apache.conf</p>
  
  <p>Anyway, when I try to run the program I get a "broken link" error. However, if I simply echo "hello" it will display the echoed statement. I did some digging around in the comments and I think it may be the configuration of apache, but I'm not having any luck figuring it out.</p>
  
  <p>The path I'm using for the server.php file is located at C:\xampp\htdocs\rest\server.php</p>
  
  <p>I added the following to my httpd.conf and nothing changed.</p>
  
  <pre><code>RewriteEngine on
  RewriteRule ^/.* rest/server.php  
  </code></pre>
  
  <p>Looking at some of the comments, someone suggested changing it to this, but it didn't work either</p>
  
  <pre><code>RewriteEngine on
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule .* rest/server.php/$0 [L]
  </code></pre>
  
  <p>I'm not sure how to configure a .htaccess file (or even where it would go using xampp), but could that be a possibility?</p>
  
  <p><strong>edit - Still isn't working and I made the following changes</strong></p>
  
  <p>I changed this in httpd.conf</p>
  
  <pre><code>&lt;Directory /&gt;
   Options FollowSymLinks
   AllowOverride ALL 
   Order deny,allow
   Deny from all
  &lt;/Directory&gt;  
  </code></pre>
  
  <p>I made a .htaccess file and placed it in my htdocs folder (in xampp) with the following lines</p>
  
  <pre><code>Options +FollowSymlinks
  RewriteEngine on
  RewriteRule ^/.* rest/server.php     
  </code></pre>