Setup rest rewrite rules

From Wiki2

Setup rest rewrite rules

Add rewrite rules[edit] so a restful path /hsc/feeds/1234 (which doesn't really exist) sends you to the API which processes the request using the /feeds/12345 information from the path. load rewrite extension

sudo a2enmod rewrite
/usr/sbin/apache2ctl restart

In /etc/apache2/sites-available/default add rules like

   <Directory /var/www/hsc>
   	RewriteEngine On
   	RewriteRule feed/([0-9]+) /var/www/hsc/index.php?id=$1
   	RewriteRule feeds /var/www/hsc/index.php
   	RewriteRule datastreams /var/www/hsc/index.php?id=$1	
   	RewriteRule prog /var/www/hsc/index.php?id=$1		
   	RewriteRule progs /var/www/hsc/index.php?id=$1		
   </Directory>

remember to restart apache

  /usr/sbin/apache2ctl restart