From 6fea306ab914287bc2e6ec242f440e31e440110f Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sat, 29 Nov 2014 19:31:21 +0100 Subject: move url rewriting into php for better compatibility with nginx --- .htaccess | 38 +------------------------------------- 1 file changed, 1 insertion(+), 37 deletions(-) (limited to '.htaccess') diff --git a/.htaccess b/.htaccess index 14e9703..431bbb1 100644 --- a/.htaccess +++ b/.htaccess @@ -5,40 +5,4 @@ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l -# / -> index.php - room/streams list -DirectoryIndex index.php - -# /room/ -> room.php - native av-player in sd (with format switcher included) -RewriteRule ^(saal1|saal2|saalg|saal6)/?$ room.php?room=$1&format=sd&language=native [L] - -# /room/translated -> room.php - translated av-player in sd (with format switcher included) -RewriteRule ^(saal1|saal2|saalg|saal6)/translated/?$ room.php?room=$1&format=sd&language=translated [L] - -# /room/format/ -> room.php - native av-player in $format (with format switcher included) -RewriteRule ^(saal1|saal2|saalg|saal6)/(hd|audio|slides)/?$ room.php?room=$1&format=$2&language=native [L] - -# /room/format/translated -> room.php - translated av-player in $format (with format switcher included) -RewriteRule ^(saal1|saal2|saalg|saal6)/(hd|audio|slides)/translated/?$ room.php?room=$1&format=$2&language=translated [L] - - -# /miniroom/ -> room.php - native av-player in sd -RewriteRule ^(sendezentrum)/?$ room.php?room=$1&format=sd&language=native [L] - -# /miniroom/format/ -> room.php - native av-player in $format (no hd, no slides) -RewriteRule ^(sendezentrum)/(audio)/?$ room.php?room=$1&format=$2&language=native [L] - - -# /party/ -> player.php - simple audio-player for party -RewriteRule ^(lounge|ambient)/?$ party.php?room=$1&format=audio [L] - - -# /about/ -> about.php -RewriteRule ^about/?$ about.php [L] - -# /program.json -> program-json.php -RewriteRule ^program.json?$ program-json.php [L] - - -# Show a known page in case of as miss -RewriteRule ^404.html$ 404.php [L] -ErrorDocument 404 /~peter/voc-frontends/31c3/404.php +RewriteRule (.*) index.php?route=$1 [L] -- cgit v1.2.3