I want to use the most basic Bulk Redirect to redirect all URLS from one domain to another. Specifically,
www.fffilm.cz/any/path.html should redirect to
www.fffilm.name is a Google Blogger.com blog.
I have a single Bulk Redirect as follows:
- Source URL: fffilm.cz/
- Target URL: https://fffilm.name/
- Status: 301
- Parameters: “Include subdomains” and “Subpath matching” are checked.
But when I try to visit e.g. https://www.fffilm.cz/2023/09/audio-recenze-prizraky-v-benatkach.html, I get redirected to the main page at https://www.fffilm.name/ - the whole path gets dropped.
Your Target URL does not match
www. Try changing it to:
Source URL: fffilm.cz/
Target URL: https://www.fffilm.name/
but keeping the same parameters.
The redirect you’re seeing seems to reflect another rule. Do you have any other Redirect Rule or Page Rule enabled?
Preserve path suffix checked as well. Perhaps the wording is a bit confusing there, but it basically takes any of the path that isn’t matched (in your case, the entire path) and copies it over: How Bulk Redirects work · Cloudflare Rules docs
As cbrant said, you also do have another rule redirecting from
https://www.fffilm.name/, but that one seems to respect/copy paths. It would still be more efficient to directly redirect to www though.
Thanks, now it works. “Preserve path suffix” option was not needed, it was enough to add “www.” to target URL.