Repository navigation
Redirect mode: w3id rules and the redirect check - #45
Merged
Merged
Conversation
For a base under https://w3id.org/{path}/, FDPlight writes the rules for ids/{path}/.htaccess in perma-id/w3id.org in w3id's style (maintainer header, root and record rules, containers left out) and shows how to submit them. It checks from the browser whether the root IRI ends at the root file: missing, elsewhere or unreachable. On connect an empty storage base becomes the repository's Pages address. Rules verified with w3id's checker and its local Apache (SPEC §2.4, §9.2). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Decided 2026-10-23: build redirect mode now. This PR is the first part (SPEC §2.4).
src/core/w3id.ts): for a basehttps://w3id.org/{path}/, FDPlight writesids/{path}/.htaccessfor perma-id/w3id.org in w3id's style.RewriteRule ^$ {storage}{root} [R=302,L]andRewriteRule ^(.*[^/])$ {storage}$1.ttl [R=302,L], so records and profile documents redirect and LDP container IRIs do not.tools/check, 42 rules): no findings.tools/server): the root, a record and a profile document redirect to their.ttlon the live FDPlight site, and a container IRI gives 404.*on redirects and on 404s; checked in Chromium, including against real w3id.org for an unregistered identifier ("missing").Next: re-base after the first publish, and a w3id option in the guided setup.
Luiz Olavo Bonino