diff --git a/.htaccess b/.htaccess index 0371e3c..dfff239 100644 --- a/.htaccess +++ b/.htaccess @@ -1,3 +1,12 @@ RedirectMatch 404 ^/\.git + + +RewriteEngine On +RewriteBase / +RewriteRule ^$ feiertage.php [L] +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule ^Feiertage([A-Za-z]*)([0-9]+)\.ics$ feiertage.php?jahr=$2&land=$1 [L] + diff --git a/feiertage.php b/feiertage.php index 69ace22..88f8d6b 100644 --- a/feiertage.php +++ b/feiertage.php @@ -77,8 +77,8 @@ class Feiertag { return false; } - public function IsInBundesland(int $id) { - return in_array($id, $this->laender); + public function IsInBundesland(int $landId) { + return in_array($landId, $this->laender); } public function GetBundeslaender(string $sep = ', ', bool $short = false) { diff --git a/index.php b/index.php deleted file mode 120000 index bd99ec7..0000000 --- a/index.php +++ /dev/null @@ -1 +0,0 @@ -feiertage.php \ No newline at end of file