diff --git a/fep/888d/fep-888d.md b/fep/888d/fep-888d.md index 72a9cd2..3be51c3 100644 --- a/fep/888d/fep-888d.md +++ b/fep/888d/fep-888d.md @@ -79,23 +79,23 @@ At the time of writing this FEP, the Codeberg repository at `https://codeberg.or (This section is non-normative.) ```perl -Header set Access-Control-Allow-Origin * -Header set Access-Control-Allow-Headers DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified$ -Options +FollowSymLinks RewriteEngine on # catch FEP-specific context requests RewriteCond %{HTTP_ACCEPT} application/ld\+json -RewriteRule ^([^/\.]*)/?(.*?)?/?$ https://codeberg.org/fediverse/fep/raw/branch/main/fep/$1/context.jsonld [R=302,L] +RewriteRule ^([A-Za-z0-9]+)\/?(.*?)?$ https://codeberg.org/fediverse/fep/raw/branch/main/fep/$1/context.jsonld [R=302,L] # catch FEP-specific context requests without content negotiation -RewriteRule ^([^/\.]*)/?(.*?)?.jsonld$ https://codeberg.org/fediverse/fep/raw/branch/main/fep/$1/context.jsonld [R=302,L] +RewriteRule ^([A-Za-z0-9]+).jsonld$ https://codeberg.org/fediverse/fep/raw/branch/main/fep/$1/context.jsonld [R=302,L] # catch FEP proposal documents -RewriteRule ^([^/\.]*)/?(.*?)?/?$ https://codeberg.org/fediverse/fep/src/branch/main/fep/$1/fep-$1.md [R=302,L] +RewriteRule ^([A-Za-z0-9]+)\/?$ https://codeberg.org/fediverse/fep/src/branch/main/fep/$1/fep-$1.md [R=302,L] + +# catch root request +RewriteRule ^$ https://codeberg.org/fediverse/fep [R=302,L] # a generic catch-all rule -RewriteRule ^(.*?)\/?$ https://codeberg.org/fediverse/fep/raw/branch/main/fep/$1 [R=302,L] +RewriteRule ^(.*)\/?$ https://codeberg.org/fediverse/fep/raw/branch/main/fep/$1 [R=302,L] ``` ### Defining terms associated with an FEP