#Rewrite Engine anschalten
RewriteEngine on
#normale Seiten ohne Unterverzeichnis (Liste, Rezeptliste, neues Rezept)
RewriteRule ^([a-zA-Z0-9-]+)$ ?site=$1
#Error Seite
RewriteRule ^error/([a-zA-Z0-9-]+)$ ?site=error&id=$1
#Rezept Seite
RewriteRule ^recipe/([0-9]+)$ ?site=recipe&number=$1
#Rezepteditieren
RewriteRule ^edit-recipe/([0-9]+)$ ?site=edit-recipe&number=$1
#Loginseite
RewriteRule ^login/url=(.+)$ ?site=login&refurl=$1
#API Calls
RewriteRule ^api/([\w-]+)/([\w-]+)$ php/api.php?site=api&call=$1&function=$2 [L]
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Order Allow,Deny
Allow from all
Order Allow,Deny
Allow from all
Order Allow,Deny
Allow from all
Order Allow,Deny
Allow from all
Order Allow,Deny
Allow from all