Unnecessary 301 redirect, only with Cloudflare

What is the name of the domain?

What is the issue you’re encountering

Unnecessary 301 redirect, only with Cloudflare

What steps have you taken to resolve the issue?

Hello,
There are several unnecessary 301 redirects, which sometimes concerns 2 and sometimes 4 graphic elements, depending on the page of the site. E.g. here World / Travel – music for travel videos. Music for filmmakers
GTMetrix: https://gtmetrix.com/reports/www.music-bay.net/90O6XGVf/ (Waterfall > Status).
It seems that some elements are loaded normally (code 200), then a second time - with 301.
But when I bypass Cloudflare (Development Mode), there are no more 301 https://gtmetrix.com/reports/www.music-bay.net/Vzp3dPCd/ .
Where does this redirect come from and how can I stop it?
Thanks a lot for your help :).
Kris

Any redirects you have set up under Cloudflare will likely be under Redirect Rules (scroll down to check for Bulk Redirects as well) or Page Rules in your dashboard here…
https://dash.cloudflare.com/?to=/:account/:zone/rules/redirect-rules
https://dash.cloudflare.com/?to=/:account/:zone/rules/rules

You can also use the trace tool to check for redirects in the Cloudflare pipeline.

Development mode just bypasses the cache though, you need to pause Cloudflare to bypass Cloudflare completely.

Thank you very much for your reply.

I have consulted the sections you mentioned - Redirect Rules, single and bulk: There aren’t any rules

Page Rules :

https://music-bay.net/*

Forwarding URL (Status Code: 301 - Permanent Redirect, Url: https://www.music-bay.net/$1)

So it seems that only the home page has a 301 redirect (whereas the other pages have twice as many 301- redirects).

Are there any other possibilities where this redirect could be coming from?

Thanks-)

Can you post some links that redirect elsewhere? Put them inside backticks by pressing the </> button when you compose the post so the forum software doesn’t follow the links and post the wrong link.

1 Like

Yes of course, here is the page in question (this is an example, I see 301 on all the pages of the site):
https://www.music-bay.net/downloads/category/genre/world-travel/
And here is the GTMetrix screenshot showing this redirection


And the GTMetrix link is here:
https://gtmetrix.com/reports/www.music-bay.net/9uDp5a41/
And the same page with Cloudflare in Development mode (no 301):
https://gtmetrix.com/reports/www.music-bay.net/iv9j1yei/
Thank you-)

The redirect includes headers from your origin so it’s happening there, not on Cloudflare. If it was being done by Cloudflare then the Litespeed headers would not appear.

curl -i https://www.music-bay.net/downloads/category/genre/world-travel/iconcartwhite.png
HTTP/2 301
date: Wed, 20 Nov 2024 13:31:23 GMT
content-type: text/html; charset=UTF-8
location: https://www.music-bay.net
x-dns-prefetch-control: on
cf-edge-cache: cache,platform=wordpress
expires: Wed, 11 Jan 1984 05:00:00 GMT
cache-control: max-age=86400, must-revalidate
x-ua-compatible: IE=edge
x-litespeed-cache: hit
x-turbo-charged-by: LiteSpeed
cf-cache-status: EXPIRED
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=zB%2Fbc9W%2BRw%2FqSrBluFjFUUz9kMUcxvqRacqdsoYAhK8eeBTgiaj53uTgLTtBosJ3SVVYSKD95KTqRgZwqXfCaGGBkpiWsrt20GmHKiX4vOEMjWpqMUXqAks3W2nlsRo1F45gDQuw2GdQ%2BNXvsyJH8A%3D%3D"}],"group":"cf-nel","max_age":604800}
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
server: cloudflare
cf-ray: 8e58ccce3ca894b5-LHR
alt-svc: h3=":443"; ma=86400
server-timing: cfL4;desc="?proto=TCP&rtt=0&sent=0&recv=0&lost=0&retrans=0&sent_bytes=0&recv_bytes=0&delivery_rate=0&cwnd=0&unsent_bytes=0&cid=c07606bcfa602300&ts=642&x=0"
1 Like

Set your SSL to Full (Strict).

1 Like

Thanks for the explanation, we’ll look into it.
Thanks also for the suggestion of SLL Full Strict.
Have a nice day :grinning:

This topic was automatically closed after 15 days. New replies are no longer allowed.