Redirect to target url only if it exists, otherwise do not redirect
-
Hi there,
I am trying to implement a redirect where the redirection only happens if the target url exists, ie. if:
– target url exists, redirect
– target url DOES NOT exist, do not redirect/ do nothingI have tried the following settings but not working (takes a long time to load and eventually shows page “Problem loading page; The page isn’t redirecting properly; An error occurred during a connection to production.zerodegreeshealth.com; This problem can sometimes be caused by disabling or refusing to accept cookies.”):
– source url: ^/members/(.*)
– match: URL and custom filter
– when matched: redirect to url
– with http code: 301- moved permanently
– matched target: https://production.zerodegreeshealth.com/explore/$1
– unmatched target: https://production.zerodegreeshealth.com/members/$1I have read the documentation but could not work out where I am going wrong, please can you help?
- The topic ‘Redirect to target url only if it exists, otherwise do not redirect’ is closed to new replies.