2018-10-24 15:00:27 +02:00
|
|
|
<IfModule mod_rewrite.c>
|
|
|
|
#Rewrite Engine anschalten
|
|
|
|
RewriteEngine on
|
|
|
|
|
2018-10-26 11:47:49 +02:00
|
|
|
#normale Seiten ohne Unterverzeichnis (Liste, Rezeptliste, neues Rezept)
|
2018-10-24 15:00:27 +02:00
|
|
|
RewriteRule ^([a-zA-Z0-9-]+)$ ?site=$1
|
|
|
|
|
2019-05-19 18:37:00 +02:00
|
|
|
#alles, was versucht ein Script aufzurufen
|
2019-05-23 08:58:48 +02:00
|
|
|
RewriteRule /js/(.+) /js/$1
|
2019-05-19 18:37:00 +02:00
|
|
|
|
2018-10-24 15:00:27 +02:00
|
|
|
#Error Seite
|
2019-05-19 18:37:00 +02:00
|
|
|
RewriteRule ^error/([a-zA-Z0-9-_]+)$ ?site=error&id=$1
|
2018-10-24 15:00:27 +02:00
|
|
|
|
|
|
|
#Rezept Seite
|
|
|
|
RewriteRule ^recipe/([0-9]+)$ ?site=recipe&number=$1
|
|
|
|
|
2019-05-19 20:31:37 +02:00
|
|
|
#Rezept editieren
|
2018-10-26 11:47:49 +02:00
|
|
|
RewriteRule ^edit-recipe/([0-9]+)$ ?site=edit-recipe&number=$1
|
|
|
|
|
2018-10-24 15:00:27 +02:00
|
|
|
#Loginseite
|
2018-11-20 09:59:59 +01:00
|
|
|
RewriteRule ^login/url=(.+)$ ?site=login&refurl=$1
|
2018-10-24 15:00:27 +02:00
|
|
|
|
2018-11-20 09:59:59 +01:00
|
|
|
#API Calls
|
|
|
|
RewriteRule ^api/([\w-]+)/([\w-]+)$ php/api.php?site=api&call=$1&function=$2 [L]
|
2018-10-24 15:00:27 +02:00
|
|
|
</IfModule>
|
2018-11-20 09:59:59 +01:00
|
|
|
|
2018-11-20 13:53:17 +01:00
|
|
|
#Deny every *.php file
|
2018-11-20 09:59:59 +01:00
|
|
|
<Files *.php>
|
2019-06-10 20:21:35 +02:00
|
|
|
Require all granted
|
2018-11-20 09:59:59 +01:00
|
|
|
</Files>
|
|
|
|
|
2018-11-20 13:53:17 +01:00
|
|
|
#allow following files
|
2018-11-20 09:59:59 +01:00
|
|
|
<Files index.php>
|
2019-06-10 20:21:35 +02:00
|
|
|
Require all granted
|
2018-11-20 09:59:59 +01:00
|
|
|
</Files>
|
|
|
|
|
|
|
|
<Files api.php>
|
2019-06-10 20:21:35 +02:00
|
|
|
Require all granted
|
2018-11-20 09:59:59 +01:00
|
|
|
</Files>
|
|
|
|
|
|
|
|
<Files login.php>
|
2019-06-10 20:21:35 +02:00
|
|
|
Require all granted
|
2018-11-20 09:59:59 +01:00
|
|
|
</Files>
|
|
|
|
|
|
|
|
<Files logout.php>
|
2019-06-10 20:21:35 +02:00
|
|
|
Require all granted
|
2018-11-20 09:59:59 +01:00
|
|
|
</Files>
|
|
|
|
|
|
|
|
<Files install*.php>
|
2019-06-10 20:21:35 +02:00
|
|
|
Require all granted
|
2018-11-20 09:59:59 +01:00
|
|
|
</Files>
|