All Collections
Changelog
Changelog: Support for trailing slash URL rewrites
Changelog: Support for trailing slash URL rewrites
Tomohyco Tsunoda avatar
Written by Tomohyco Tsunoda
Updated over a week ago

A trailing slash URL is the "/" bit at the end of a web address such as example.com/page/. This is also commonly known as a forward-slash.

We are happy to announce that Shifter now offers a great range of support for URLs both with and without forward-slashes. Prior to this change, forward-slashes were required to match static pages on Shifter sites.

On legacy hosting environments the ability to interchange a web address with or without a forward slash to its ultimate destination was less important. While using Apache or NGINX, we can rewrite those URIs to their intended address.

While using static files in a serverless hosting environment, we need to rely on alternative methods such as Lambda, DNS, CloudFront, or an API Gateway.

In this case, we were able to implement this forwarding feature using Lambda@Edge and CloudFront.

How to Get Started

To begin using this update, simply generate a new artifact and deploy. As with all Shifter platform updates we perform rolling updates to ensure the latest changes are available to our customers seamlessly.

Note about Caching

Since this feature depends on CloudFront, some caching may occur. If you experience this please clear your browser cache or allow for CloudFront to invalidate the cache of your latest artifact deploy.

Did this answer your question?