Skip to content

https://w3id.org/xapi/profiles#1.0 redirection does not work #254

Open
@imartinezortiz

Description

@imartinezortiz

Sorry if this is not the proper location to submit the issue, but I didn't found a fork of https://github.com/perma-id/w3id.org/ in the adlnet org to submit there.

Reviewing the xAPI profile structure: profile properties section of the spec I realized that following the link https://w3id.org/xapi/profiles#1.0 included in the conformsTo attribute, does not redirect to https://adlnet.github.io/xapi-profiles/#1.0, but instead shows the empty content of https://w3id.org/xapi/profiles directory.

The problems seems to be related to https://github.com/perma-id/w3id.org/blob/master/xapi/profiles/.htaccess#L34. My understanding is that the hash / fragment part is never seen by the server so the pattern never matches. I've tried locally the following directive and it works:

# xAPI PROFILE SPEC VERSION
# ---------------------------------------------
# Ontology Rewrite rule to serve HTML content from the URI if requested
RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml)
RewriteCond %{HTTP_ACCEPT} text/html [OR]
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
# Match the empty uri
RewriteRule ^$ https://adlnet.github.io/xapi-profiles [R=303]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions