Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Available features for complex redirects #2083

Open
OR13 opened this issue Mar 25, 2021 · 2 comments
Open

Available features for complex redirects #2083

OR13 opened this issue Mar 25, 2021 · 2 comments

Comments

@OR13
Copy link
Contributor

OR13 commented Mar 25, 2021

For complex rewrites that are string specific, simple regex can be cumbersome, see this thread here:

w3c-ccg/did-method-web#25 (comment)

Are there any features of w3id.org that we should be aware of that might be able to support recursive / string replacement in redirects better?

@davidlehn
Copy link
Collaborator

I'm not clear on the problem. Is there a set of test vectors for input vs output urls?

The quick answer is probably that there is nothing special enabled. We tried to keep the w3id.org apache config simple. The idea being to just keep the service mainly as a stable namespace that redirects elsewhere. There's nothing stopping people from redirecting to another service to do more complex processing.

That being said, maybe you can use the N flag (with iteration limit option) to do some recursive processing?

@OR13
Copy link
Contributor Author

OR13 commented Mar 25, 2021

@davidlehn

the did web spec says you can convert strings like this:

did:web:example.com => https://example.com/.well-known/did.json
did:web:example.com:folder1 => https://example.com/folder1/did.json
did:web:example.com:folder1:folder2 => https://example.com/folder1/folder2/did.json
etc...

for an arbitrary number of nested :folderN how to convert to the URL on the right with perma-id ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants