how do i make so if my site goes down then it redirects to another uri/url

i use wordpress on my main sites and html on the redirect site
4 Replies
Walshy
Walshy2y ago
You want to check if the Wordpress site goes down and instead use Pages?
HOLDULV
HOLDULVOP2y ago
yes and this should be automated so if site goes down then the redirect will come and i can't use pages as if the server goes down
Walshy
Walshy2y ago
So… You could use a health check to ensure the site is healthy. If not, send a webhook to like a Worker and have it setup a redirect rule. You can then also remove the rule when it’s healthy again Alternatively, send all traffic through the Worker, fetch the Wordpress site, if it fails then fallback to the Pages site
HOLDULV
HOLDULVOP2y ago
oh ok thx for help
Want results from more Discord servers?
Add your server