2023-01-06 00:00:27 +01:00
|
|
|
|
|
|
|
# Language-specific index based on Accept-Language header
|
|
|
|
DirectoryIndex index.var index.html
|
|
|
|
|
2024-05-25 14:24:37 +02:00
|
|
|
RewriteEngine on
|
|
|
|
RewriteRule ^/.well-known/spaceapi.json$ /spaceapi.json [L]
|
2023-01-06 00:00:27 +01:00
|
|
|
{% if htaccess_spaceapi_proxy %}
|
|
|
|
# SpaceAPI proxy service workaround for missing CORS headers
|
|
|
|
{%- for space in hackerspaces %}
|
2024-05-25 14:24:37 +02:00
|
|
|
{%- if 'spaceapi' in space %}
|
|
|
|
{%- set proto, url = space.spaceapi.split('://', 1) %}
|
|
|
|
RewriteRule ^{{ htaccess_spaceapi_proxy }}/{{ proto }}/{{ url }}$ {{ space.spaceapi }} [P,L]
|
2023-01-06 00:00:27 +01:00
|
|
|
{%- endif %}
|
|
|
|
{%- endfor %}
|
|
|
|
{%- endif %}
|