streaming-website/.htaccess

32 lines
1.3 KiB
ApacheConf
Raw Normal View History

2014-10-01 08:33:00 +00:00
RewriteEngine On
# Deliver literal files as-is
2014-10-01 08:33:00 +00:00
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
# / -> index.php - room/streams list
2014-10-01 13:03:06 +00:00
DirectoryIndex index.php
2014-10-01 08:33:00 +00:00
# /room/ -> room.php - native av-player in hq (with format switcher included)
RewriteRule ^(saal1|saal2|saalg|saal6)/?$ room.php?room=$1&format=hq&language=native& [L]
# /room/ -> room.php - translated av-player in hq (with format switcher included)
RewriteRule ^(saal1|saal2|saalg|saal6)/translated/?$ room.php?room=$1&format=hq&language=translated& [L]
2014-10-01 08:33:00 +00:00
# /room/format/ -> room.php - native av-player in $format (with format switcher included)
RewriteRule ^(saal1|saal2|saalg|saal6)/(hd|lq|audio|slides)/?$ room.php?room=$1&format=$2&language=native [L]
2014-10-01 08:33:00 +00:00
# /room/format/translated -> room.php - translated av-player in $format (with format switcher included)
RewriteRule ^(saal1|saal2|saalg|saal6)/(hd|lq|audio|slides)/translated/?$ room.php?room=$1&format=$2&language=translated [L]
2014-10-01 08:33:00 +00:00
# /party/ -> player.php - simple audio-player for party
2014-10-19 11:04:35 +00:00
RewriteRule ^(lounge|ambient|sendezentrum)/?$ party.php?room=$1&format=audio [L]
2014-10-01 08:33:00 +00:00
# Show a known page in case of as miss
2014-10-01 08:33:00 +00:00
ErrorDocument 404 404.php
# Allow Caches & Proxies to Cache all resources
#ExpiresActive On
#ExpiresDefault "access plus 4 hours"