A privacy respecting, self-hosted weather website 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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 

80 lines
4.8 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$ page-settings.php
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 ^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 ^weather-data/lat:([0-9-.]{4,19}),lng:([0-9-.]{4,19})/settings:(metric|imperial),([a-z]{2}),(comma|dot),(24h|12h)$ weather-data.php?lat=$1&lng=$2&uni=$3&lan=$4&dec=$5&tim=$6
RewriteRule ^weather-data/lat:([0-9-.]{4,19}),lng:([0-9-.]{4,19})/settings:(metric|imperial),([a-z]{2}),(comma|dot),(24h|12h)/apikey:([a-z0-9]{32})$ weather-data.php?lat=$1&lng=$2&uni=$3&lan=$4&dec=$5&tim=$6&api=$7
RewriteRule ^update-language$ configs/default-language.php
RewriteRule ^search-place:(.*)$ ajax/search-place.php?val=$1
</IfModule>