Table of Contents
Be logged into your dashboard.
- Select the domain you want to redirect from
Go to page rules
Click “Create page rule”
your.domain/*(matches all traffic) for which URLs will have their traffic redirected
Click “Add a Setting”
Select “Forwarding URL”
Select the type of redirect, I recommend 302s since they’re less aggressively cached (so if you ever want to use that domain to do something else other than redirect, you can)
Enter your forwarding URL
Click “Save and Deploy”
You’re done, you’ve just created a redirect from your domain to another one 🙂
Subscribe to Code with Hugo
Get all the posts of the week before anyone else in your inbox
Looking for a new job? Take Triplebyte’s quiz and have top tech companies pitch you!