chaostreff.ch/static-src/.htaccess

16 lines
554 B
ApacheConf
Raw Normal View History

2023-01-06 00:00:27 +01:00
# Language-specific index based on Accept-Language header
DirectoryIndex index.var index.html
# Optional: Redirect to language specific subsite, rather than showing
# language specific content at the root
{% if htaccess_spaceapi_proxy %}
# SpaceAPI proxy service workaround for missing CORS headers
RewriteEngine on
{%- for space in hackerspaces %}
{%- if 'spaceapi' in space %}
2023-01-06 00:38:18 +01:00
RewriteRule ^spaceapi-proxy{{ space.spaceapi }}$ {{ space.spaceapi.split('/', 2)[1] }}://{{ space.spaceapi.split('/', 2)[2] }} [P,L]
2023-01-06 00:00:27 +01:00
{%- endif %}
{%- endfor %}
{%- endif %}