Cloudflare Pages: get rid of redundat 308 redirect

I’m migrating our Gatsby project from Netlify to Cloudflare Pages.

My website is currently hosted on Netlify

We have had a clean URL structure on Netlify (without slash at the end) and I want to keep it that way for the best SEO performance. To achieve this on Netlify we just had to disable the “Pretty URL” option (can’t post a link, sorry).

However, Cloudflare Pages adds a redundat 308 redirect and a slash at the end of the URL:

This lowers our Lighthouse Speed scores:

And may cause other unwanted issues (SCHEMA, crawling and indexing issues for search engines). Since our project is strictly focused on top SEO performance, we can not allow this.

Do you have any ideas how to solve this problem?

Page rules?

The “trailing slash” issue has been covered several times:

1 Like
  1. Page rules don’t work. We get a redirect loop.

  2. For htaccess we use this and it doesn’t work either.
    RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)/$ /$1 [L,R=301]

  3. There are many unsolved topics related to this topic:
    Cloudflare Pages: Disable Non-Trailing Slash 308 Redirect
    Cloudflare Pages Remove Trailing Slash - #2
    Url forwarding page rules


ok I now see what you mean.
Can you please tell us if “URL Normalization” is turned on? Maybe thats the cause.

1 Like

One of these was turned on.

It is now disabled. It didn’t help.

Preview below. Chrome, no cache, private window:

I’m checking redirects status with this tool:

This has been raised with the team, they will discuss it and decide what to do. They do see the issue.


Is there any way we can monitor the status of this specific issue? How do I know if / when it’s fixed?