mirror of
https://codeberg.org/fediverse/fep.git
synced 2026-08-05 11:46:04 +00:00
888d: Fix example htaccess
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user