How do I redirect the homepage of a domain to the homepage of another domain

Hi, I did a 302 redirect using page rule from an old domain to a new one. Is there a way I can stop non existent pages on the old domain from redirecting to the home page of my new domain.

For example oldDomain.com/path, redirecting to newDomain.com. whereas I only wanted the homepage of the old domain to redirect to the homepage of the new domain.

If you don’t redirect /path/ queries, the visitor will get a failed connection. If you’re ok with that, then the Page Rule shouldn’t have a wildcard (*) at the end, and the destination won’t have any $ parameters.

Match: *olddomain.com/ (no * at the end, but the one at the beginning will forward people who type in www as well)
Setting: Forwarding URL: https://newdomain.com

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.