Efficient redirect URL scheme using Page Rule

Hi,

With Page Rules, order matters.

Can I assume you have another rule to redirect URLs that do not have a trailing slash, but also do not point to www.?

example.com/path -> www.example.com/path

If so, the Page Rule for the most specific URL, to perform the redirect for URLs with the trailing slash, should be placed above the rule for URLs without it. See if that fixes the problem.

Also, you should consider Redirect Rules, as Page Rules have a limited ability to handle more complex logic that you may need to include down the road, such as considering query string or specific subdirectories for exclusions.

2 Likes