This is the source code for the website of Serenum. https://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.
 
 
 

103 lines
8.6 KiB

SetEnv SERVER_ADMIN hi@airikr.me
SetEnv TZ Europe/Stockholm
DefaultLanguage sv-SE
AddDefaultCharset UTF-8
Options All -Indexes
IndexIgnore *
LimitRequestBody 10240000
<FilesMatch "\.(htaccess)$">
Require all denied
</FilesMatch>
<IfModule mod_expires.c>
<filesMatch ".(ico|jpg|png|js|css)$">
Header set Cache-Control "max-age=84600, public"
</filesMatch>
</IfModule>
<IfModule mod_rewrite.c>
DirectoryIndex index.php /serenum/index.php
ErrorDocument 404 /serenum/errors.php
RewriteEngine On
RewriteBase /serenum/
RewriteCond %{REQUEST_METHOD} !^(GET|POST)
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^$ index.php
RewriteRule ^about$ page-about.php
# RewriteRule ^api$ page-api.php
RewriteRule ^contact-us$ page-contact.php
RewriteRule ^faq$ page-faq.php
RewriteRule ^settings/show:welcome$ page-settings.php?shw=welcome
RewriteRule ^([a-z]{2})/settings/show:welcome$ page-settings.php?lan=$1&shw=welcome
RewriteRule ^lat:([0-9-.]{4,19}),lng:([0-9-.]{4,19})/settings:(metric|imperial),([a-z]{2}),(comma|dot),(24h|12h),(light|dark)$ index.php?lat=$1&lng=$2&uni=$3&lan=$4&dec=$5&tim=$6&the=$7
RewriteRule ^lat:([0-9-.]{4,19}),lng:([0-9-.]{4,19})/settings:(metric|imperial),([a-z]{2}),(comma|dot),(24h|12h),(light|dark)/about$ page-about.php?lat=$1&lng=$2&uni=$3&lan=$4&dec=$5&tim=$6&the=$7
# RewriteRule ^lat:([0-9-.]{4,19}),lng:([0-9-.]{4,19})/settings:(metric|imperial),([a-z]{2}),(comma|dot),(24h|12h),(light|dark)/api$ page-api.php?lat=$1&lng=$2&uni=$3&lan=$4&dec=$5&tim=$6&the=$7
RewriteRule ^lat:([0-9-.]{4,19}),lng:([0-9-.]{4,19})/settings:(metric|imperial),([a-z]{2}),(comma|dot),(24h|12h),(light|dark)/contact-us$ page-contact.php?lat=$1&lng=$2&uni=$3&lan=$4&dec=$5&tim=$6&the=$7
RewriteRule ^lat:([0-9-.]{4,19}),lng:([0-9-.]{4,19})/settings:(metric|imperial),([a-z]{2}),(comma|dot),(24h|12h),(light|dark)/faq$ page-faq.php?lat=$1&lng=$2&uni=$3&lan=$4&dec=$5&tim=$6&the=$7
RewriteRule ^lat:([0-9-.]{4,19}),lng:([0-9-.]{4,19})/settings:(metric|imperial),([a-z]{2}),(comma|dot),(24h|12h),(light|dark)/settings$ page-settings.php?lat=$1&lng=$2&uni=$3&lan=$4&dec=$5&tim=$6&the=$7
RewriteRule ^lat:([0-9-.]{4,19}),lng:([0-9-.]{4,19})/settings:(metric|imperial),([a-z]{2}),(comma|dot),(24h|12h),(light|dark)/privacy$ page-privacy.php?lat=$1&lng=$2&uni=$3&lan=$4&dec=$5&tim=$6&the=$7
RewriteRule ^lat:([0-9-.]{4,19}),lng:([0-9-.]{4,19})/settings:(metric|imperial),([a-z]{2}),(comma|dot),(24h|12h),(light|dark)/apikey:([a-z0-9]{32})$ index.php?lat=$1&lng=$2&uni=$3&lan=$4&dec=$5&tim=$6&the=$7&api=$8
RewriteRule ^lat:([0-9-.]{4,19}),lng:([0-9-.]{4,19})/settings:(metric|imperial),([a-z]{2}),(comma|dot),(24h|12h),(light|dark)/apikey:([a-z0-9]{32})/about$ page-about.php?lat=$1&lng=$2&uni=$3&lan=$4&dec=$5&tim=$6&the=$7&api=$8
# RewriteRule ^lat:([0-9-.]{4,19}),lng:([0-9-.]{4,19})/settings:(metric|imperial),([a-z]{2}),(comma|dot),(24h|12h),(light|dark)/apikey:([a-z0-9]{32})/api$ page-api.php?lat=$1&lng=$2&uni=$3&lan=$4&dec=$5&tim=$6&the=$7&api=$8
RewriteRule ^lat:([0-9-.]{4,19}),lng:([0-9-.]{4,19})/settings:(metric|imperial),([a-z]{2}),(comma|dot),(24h|12h),(light|dark)/apikey:([a-z0-9]{32})/contact-us$ page-contact.php?lat=$1&lng=$2&uni=$3&lan=$4&dec=$5&tim=$6&the=$7&api=$8
RewriteRule ^lat:([0-9-.]{4,19}),lng:([0-9-.]{4,19})/settings:(metric|imperial),([a-z]{2}),(comma|dot),(24h|12h),(light|dark)/apikey:([a-z0-9]{32})/faq$ page-faq.php?lat=$1&lng=$2&uni=$3&lan=$4&dec=$5&tim=$6&the=$7&api=$8
RewriteRule ^lat:([0-9-.]{4,19}),lng:([0-9-.]{4,19})/settings:(metric|imperial),([a-z]{2}),(comma|dot),(24h|12h),(light|dark)/apikey:([a-z0-9]{32})/settings$ page-settings.php?lat=$1&lng=$2&uni=$3&lan=$4&dec=$5&tim=$6&the=$7&api=$8
RewriteRule ^lat:([0-9-.]{4,19}),lng:([0-9-.]{4,19})/settings:(metric|imperial),([a-z]{2}),(comma|dot),(24h|12h),(light|dark)/apikey:([a-z0-9]{32})/privacy$ page-privacy.php?lat=$1&lng=$2&uni=$3&lan=$4&dec=$5&tim=$6&the=$7&api=$8
RewriteRule ^lat:([0-9-.]{4,19}),lng:([0-9-.]{4,19})/settings:(metric|imperial),([a-z]{2}),(comma|dot),(24h|12h),(light|dark)/fine-tune:(0|1)$ index.php?lat=$1&lng=$2&uni=$3&lan=$4&dec=$5&tim=$6&the=$7&upd=$8
RewriteRule ^lat:([0-9-.]{4,19}),lng:([0-9-.]{4,19})/settings:(metric|imperial),([a-z]{2}),(comma|dot),(24h|12h),(light|dark)/fine-tune:(0|1)/about$ page-about.php?lat=$1&lng=$2&uni=$3&lan=$4&dec=$5&tim=$6&the=$7&upd=$8
# RewriteRule ^lat:([0-9-.]{4,19}),lng:([0-9-.]{4,19})/settings:(metric|imperial),([a-z]{2}),(comma|dot),(24h|12h),(light|dark)/fine-tune:(0|1)/api$ page-api.php?lat=$1&lng=$2&uni=$3&lan=$4&dec=$5&tim=$6&the=$7&upd=$8
RewriteRule ^lat:([0-9-.]{4,19}),lng:([0-9-.]{4,19})/settings:(metric|imperial),([a-z]{2}),(comma|dot),(24h|12h),(light|dark)/fine-tune:(0|1)/contact-us$ page-contact.php?lat=$1&lng=$2&uni=$3&lan=$4&dec=$5&tim=$6&the=$7&upd=$8
RewriteRule ^lat:([0-9-.]{4,19}),lng:([0-9-.]{4,19})/settings:(metric|imperial),([a-z]{2}),(comma|dot),(24h|12h),(light|dark)/fine-tune:(0|1)/faq$ page-faq.php?lat=$1&lng=$2&uni=$3&lan=$4&dec=$5&tim=$6&the=$7&upd=$8
RewriteRule ^lat:([0-9-.]{4,19}),lng:([0-9-.]{4,19})/settings:(metric|imperial),([a-z]{2}),(comma|dot),(24h|12h),(light|dark)/fine-tune:(0|1)/settings$ page-settings.php?lat=$1&lng=$2&uni=$3&lan=$4&dec=$5&tim=$6&the=$7&upd=$8
RewriteRule ^lat:([0-9-.]{4,19}),lng:([0-9-.]{4,19})/settings:(metric|imperial),([a-z]{2}),(comma|dot),(24h|12h),(light|dark)/fine-tune:(0|1)/privacy$ page-privacy.php?lat=$1&lng=$2&uni=$3&lan=$4&dec=$5&tim=$6&the=$7&upd=$8
RewriteRule ^lat:([0-9-.]{4,19}),lng:([0-9-.]{4,19})/settings:(metric|imperial),([a-z]{2}),(comma|dot),(24h|12h),(light|dark)/fine-tune:(0|1)/apikey:([a-z0-9]{32})$ index.php?lat=$1&lng=$2&uni=$3&lan=$4&dec=$5&tim=$6&the=$7&upd=$8&api=$9
RewriteRule ^lat:([0-9-.]{4,19}),lng:([0-9-.]{4,19})/settings:(metric|imperial),([a-z]{2}),(comma|dot),(24h|12h),(light|dark)/fine-tune:(0|1)/apikey:([a-z0-9]{32})/about$ page-about.php?lat=$1&lng=$2&uni=$3&lan=$4&dec=$5&tim=$6&the=$7&upd=$8&api=$9
# RewriteRule ^lat:([0-9-.]{4,19}),lng:([0-9-.]{4,19})/settings:(metric|imperial),([a-z]{2}),(comma|dot),(24h|12h),(light|dark)/fine-tune:(0|1)/apikey:([a-z0-9]{32})/api$ page-api.php?lat=$1&lng=$2&uni=$3&lan=$4&dec=$5&tim=$6&the=$7&upd=$8&api=$9
RewriteRule ^lat:([0-9-.]{4,19}),lng:([0-9-.]{4,19})/settings:(metric|imperial),([a-z]{2}),(comma|dot),(24h|12h),(light|dark)/fine-tune:(0|1)/apikey:([a-z0-9]{32})/contact-us$ page-contact.php?lat=$1&lng=$2&uni=$3&lan=$4&dec=$5&tim=$6&the=$7&upd=$8&api=$9
RewriteRule ^lat:([0-9-.]{4,19}),lng:([0-9-.]{4,19})/settings:(metric|imperial),([a-z]{2}),(comma|dot),(24h|12h),(light|dark)/fine-tune:(0|1)/apikey:([a-z0-9]{32})/faq$ page-faq.php?lat=$1&lng=$2&uni=$3&lan=$4&dec=$5&tim=$6&the=$7&upd=$8&api=$9
RewriteRule ^lat:([0-9-.]{4,19}),lng:([0-9-.]{4,19})/settings:(metric|imperial),([a-z]{2}),(comma|dot),(24h|12h),(light|dark)/fine-tune:(0|1)/apikey:([a-z0-9]{32})/settings$ page-settings.php?lat=$1&lng=$2&uni=$3&lan=$4&dec=$5&tim=$6&the=$7&upd=$8&api=$9
RewriteRule ^lat:([0-9-.]{4,19}),lng:([0-9-.]{4,19})/settings:(metric|imperial),([a-z]{2}),(comma|dot),(24h|12h),(light|dark)/fine-tune:(0|1)/apikey:([a-z0-9]{32})/privacy$ page-privacy.php?lat=$1&lng=$2&uni=$3&lan=$4&dec=$5&tim=$6&the=$7&upd=$8&api=$9
RewriteRule ^form:settings$ form-settings.php
RewriteRule ^([a-z]{2})$ shortcut.php?lan=$1
RewriteRule ^([a-z]{2})/([0-9-.]{4,19}),([0-9-.]{4,19})/s:(0|1)(0|1)(0|1)(0|1)$ shortcut.php?lan=$1&lat=$2&lng=$3&uni=$4&dec=$5&tim=$6&the=$7
RewriteRule ^([a-z]{2})/([0-9-.]{4,19}),([0-9-.]{4,19})/s:(0|1)(0|1)(0|1)(0|1)/a:([a-z0-9]{32})$ shortcut.php?lan=$1&lat=$2&lng=$3&uni=$4&dec=$5&tim=$6&the=$7&api=$8
RewriteRule ^([a-z]{2})/([0-9-.]{4,19}),([0-9-.]{4,19})/s:(0|1)(0|1)(0|1)(0|1)-(0|1)$ shortcut.php?lan=$1&lat=$2&lng=$3&uni=$4&dec=$5&tim=$6&the=$7&upd=$8
RewriteRule ^([a-z]{2})/([0-9-.]{4,19}),([0-9-.]{4,19})/s:(0|1)(0|1)(0|1)(0|1)-(0|1)/a:([a-z0-9]{32})$ shortcut.php?lan=$1&lat=$2&lng=$3&uni=$4&dec=$5&tim=$6&the=$7&upd=$8&api=$9
RewriteRule ^weather-data/lat:([0-9-.]{4,19}),lng:([0-9-.]{4,19})/settings:(metric|imperial),([a-z]{2}),(comma|dot),(24h|12h)/fine-tune:(0|1)$ weather-data.php?lat=$1&lng=$2&uni=$3&lan=$4&dec=$5&tim=$6&upd=$7
RewriteRule ^weather-data/lat:([0-9-.]{4,19}),lng:([0-9-.]{4,19})/settings:(metric|imperial),([a-z]{2}),(comma|dot),(24h|12h)/fine-tune:(0|1)/apikey:([a-z0-9]{32})$ weather-data.php?lat=$1&lng=$2&uni=$3&lan=$4&dec=$5&tim=$6&upd=$7&api=$8
RewriteRule ^update-language$ configs/default-language.php
RewriteRule ^search-place:(.*)$ ajax/search-place.php?val=$1
RewriteRule ^cfu$ check-for-updates.php
RewriteRule ^minify$ minify-files.php
RewriteRule ^cli$ cli.php
</IfModule>