Can there be more than one URI with a path component ending with the same segment term? No.
Path segments separated by slash (/) entail hierarchical containment. Path segments:
- ending with a slash corresponds to a LDPC;
- not ending with a slash corresponds to a LDPR that's not a LDPC.
Examples:
/foo/ exists =>
/foo/bar/baz exists =>
/foo/, /foo/bar/ exists.
/foo, /foo/bar, /foo/bar/baz/, /foo/bar/baz/qux,.. cannot exist.
Normally 404 status code is used when there is no representation for a resource. When a segment term is used as part of the last path segment of a resource, should there instead be a redirect (301) to it when the same segment term is used for a resource without a representation? For example:
- If
/foo/ exists, should request to /foo redirect to /foo/?
- If
/foo exists, should request to /foo/ redirect to /foo ?
Can there be more than one URI with a path component ending with the same segment term? No.
Path segments separated by slash (
/) entail hierarchical containment. Path segments:Examples:
/foo/exists =>/foocannot exist./foo/bar/bazexists =>/foo/,/foo/bar/exists./foo,/foo/bar,/foo/bar/baz/,/foo/bar/baz/qux,.. cannot exist.Normally
404status code is used when there is no representation for a resource. When a segment term is used as part of the last path segment of a resource, should there instead be a redirect (301) to it when the same segment term is used for a resource without a representation? For example:/foo/exists, should request to/fooredirect to/foo/?/fooexists, should request to/foo/redirect to/foo?