Fix trailing slash on pages
Hi, I am extremely looking forward to the changes in this direction:
https://community.cloudflare.com/t/cloudflare-pages-get-rid-of-redundat-308-redirect/324582/29
Tags:
pages 308 redirect trailing slash trailingSlash bypass
Cloudflare Community
Cloudflare Pages: get rid of redundat 308 redirect
This blog gave the workaround I needed (I use Gatsby as a static site builder, but this should work for any statically built site): https://electricui.com/blog/switching-to-cloudflare-pages#how-to-disable-the-trailing-slash-on-cloudflare-pages By moving every index.html file up a directory, the Cloudflare redirect rules result in the non-trail...
2 Replies
I used the solution that was given here:
https://electricui.com/blog/switching-to-cloudflare-pages#how-to-disable-the-trailing-slash-on-cloudflare-pages
If you don't have the ability to use Linux-level commands, you can use a simple JavaScript script and run it after generating your page
Electric UI
Why We Switched CDNs: How Google's Core Web Vitals Led Us to Cloudf...
From Netlify to Cloudflare Pages: Our Journey to Improve Web Performance
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View