<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki2.sitebuilt.net/index.php?action=history&amp;feed=atom&amp;title=Setup_rest_rewrite_rules</id>
	<title>Setup rest rewrite rules - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki2.sitebuilt.net/index.php?action=history&amp;feed=atom&amp;title=Setup_rest_rewrite_rules"/>
	<link rel="alternate" type="text/html" href="https://wiki2.sitebuilt.net/index.php?title=Setup_rest_rewrite_rules&amp;action=history"/>
	<updated>2026-05-06T14:57:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.0</generator>
	<entry>
		<id>https://wiki2.sitebuilt.net/index.php?title=Setup_rest_rewrite_rules&amp;diff=6804&amp;oldid=prev</id>
		<title>Tim: Created page with &quot;====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 ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki2.sitebuilt.net/index.php?title=Setup_rest_rewrite_rules&amp;diff=6804&amp;oldid=prev"/>
		<updated>2013-12-31T18:36:32Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;====Setup rest rewrite rules==== Add rewrite rules[edit] so a restful path /hsc/feeds/1234 (which doesn&amp;#039;t really exist) sends you to the API which processes the request using ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;====Setup rest rewrite rules====&lt;br /&gt;
Add rewrite rules[edit]&lt;br /&gt;
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.&lt;br /&gt;
load rewrite extension&lt;br /&gt;
 sudo a2enmod rewrite&lt;br /&gt;
 /usr/sbin/apache2ctl restart&lt;br /&gt;
In /etc/apache2/sites-available/default add rules like&lt;br /&gt;
    &amp;lt;Directory /var/www/hsc&amp;gt;&lt;br /&gt;
    	RewriteEngine On&lt;br /&gt;
    	RewriteRule feed/([0-9]+) /var/www/hsc/index.php?id=$1&lt;br /&gt;
    	RewriteRule feeds /var/www/hsc/index.php&lt;br /&gt;
    	RewriteRule datastreams /var/www/hsc/index.php?id=$1	&lt;br /&gt;
    	RewriteRule prog /var/www/hsc/index.php?id=$1		&lt;br /&gt;
    	RewriteRule progs /var/www/hsc/index.php?id=$1		&lt;br /&gt;
    &amp;lt;/Directory&amp;gt;&lt;br /&gt;
remember to restart apache&lt;br /&gt;
   /usr/sbin/apache2ctl restart&lt;/div&gt;</summary>
		<author><name>Tim</name></author>
	</entry>
</feed>