Skip to content

Fixes 568 - #586

Merged
muffinresearch merged 1 commit into
masterfrom
redirect-urls-without-slashes
Mar 11, 2020
Merged

muffinresearch merged 1 commit into
masterfrom
redirect-urls-without-slashes

Conversation

@bqbn

@bqbn bqbn commented Mar 11, 2020 •

Copy link
Copy Markdown
Contributor

Fixes #568

Set the x-amz-website-redirect-location property for the object that
represents the index.html file of the same named directory.

The deployment script already creates a same named object for any
directory that contains an index.html file. We now set the
x-amz-website-redirect-location property for this object so that access
to /documentation/publish/submitting-an-add-on for example, gets 301
redirected to /documentation/publish/submitting-an-add-on/.

Set the x-amz-website-redirect-location property for the object that
represents the index.html file of the same named directory.

The deployment script already creates a same named object for any
directory that contains an index.html file. We now set the
x-amz-website-redirect-location property for this object so that access
to `/documentation/publish/submitting-an-add-on` for example, gets 301
redirected to `/documentation/publish/submitting-an-add-on/`.
@bqbn
bqbn requested a review from muffinresearch March 11, 2020 04:57

@muffinresearch muffinresearch left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks @bqbn.

@muffinresearch
muffinresearch merged commit 1c8373e into master Mar 11, 2020
@muffinresearch
muffinresearch deleted the redirect-urls-without-slashes branch March 11, 2020 10:03
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

Successfully merging this pull request may close these issues.

Redirect URLS without a slash to the slashed variant

2 participants