Two Page Rules per URL?

I’m sorry if this is a common question, but I didn’t find it when I searched.

If I want to do a basic redirect from my site to another site (an affiliate link), using the format mysite dot com / link, do I have to set up two page rules per redirect to make sure it works from both mysite.com/link and www.mysite.com/link ?

It appears so, but that feels like a waste to have to spend two page rules for every redirect.

No. Since this is an specific link, you can do just one redirect. Assuming your domains uses www:

URL: *example.com/vanity-affiliate-link/
TO: www.example.com/final-destination-link/

It will redirect from root and any subdirectory your site may have (www and others), but since the URL presumably only will be requested from either naked domain or www, it should work fine.

Thanks for the reply! I tried that, and the redirect works without www, but when i try it with www, it goes on to my site and shows a 404 error.

Not sure if it matters, but I’m redirecting to another person’s site.

Here’s how I have the page rules set up:

It should work, as far as I can tell.

You should open a ticket with support so they investigate what’s going on.

2 Likes