is there way ignore key prefix? or redirect url without changing url in address bar?
for instance, have following url x.com/y/uuid/
want s3 route me x.com/y/index.html
without removing/replacing /uuid/
redirect url without changing url in address bar
then wouldn't redirect. http redirect, definition, sends browser new location, , address bar gets rewritten.
some web server software has concept of internally rewriting url subsequent processing target resolves different path otherwise might, s3 not support -- except case of automatic index documents, example.com/foo
trigger browser redirect example.com/foo/
internally rewritten s3 return object key foo/index.html
if exists. (the browser redirect keeps relative paths sane; without it, relative path in /foo/index.html
incorrectly interpreted relative root, instead of relative /foo/
-- correctly-behaving web servers when rendering index documents.)
s3 custom error documents internal rewrite, of course.
but contemplate not supported s3.
cloudfront in front of s3 can exact opposite of you're looking for, that, example, example.com/bar.html
presented back-end request example.com/foo/bar.html
without browser redirect (by configuring custom origin , setting origin path /foo
) neither service supports removing/hiding/masking path parts without browser redirect.
Comments
Post a Comment