The official source code for Serenum API. https://api.serenum.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

60 lines
887 B

SetEnv SERVER_ADMIN hi@serenum.org
SetEnv TZ Europe/Stockholm
DefaultLanguage sv-SE
AddDefaultCharset UTF-8
Options All -Indexes
IndexIgnore *
LimitRequestBody 10240000
# PROTECT
<Files .htaccess>
order allow,deny
deny from all
</Files>
# --------------------------------------- #
<IfModule mod_php4.c>
php_value zlib.output_compression 16386
</IfModule>
<IfModule mod_rewrite.c>
# FIRST OF CHOICE
DirectoryIndex index.php /api/index.php
# ERRORS
ErrorDocument 404 /api/errors.php?err=404
# REWRITE ENGINE
RewriteEngine On
RewriteBase /api/
# REWRITE: Require GET and POST
RewriteCond %{REQUEST_METHOD} !^(GET|POST)
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
# --------------------------------------- #
# PAGES
RewriteRule ^$ index.php
RewriteRule ^diff$ diff.php
RewriteRule ^wiki$ wiki.php
</IfModule>