How to Redirect a Domain in Cloudflare Without SSL Issues - Quick and Easy Way!

Опубликовано: 04 Декабрь 2022
на канале: I am Dan Davies
872
22

How to redirect a domain using Cloudflare with no SSL issues.

In this video I walk you through the steps needed to make sure that any parked domain or secondary domain can be used as a forwarder to your website. So for example if you’re looking to redirect 'my-domain.com' to 'my-domain.co.uk', this video will guide you through the process.

Setting up a parked domain or a forwarder can be pretty straight forward in your hosting account but when you start using Cloudflare there is a common issue with the SSL certificate, meaning you'll need your secondary domain to also go through Cloudflare.

Steps you'll need to follow to resolve this issue:

1. You need to make sure that you have both domains running through Cloudflare.
A. In order to add your domain to Cloudflare you need to ‘Add a new site’
B. Enter the domain name in
C. After adding the domain, you’ll need to configure the DNS for the forwarding domain.
D. It’s important that you primary domain is configured to use your server IP address,
E. However your forwarding or parked domain must have these DNS records for this to work
1. @ : 192.1.2.3
2. www : 192.1.2.3
F. Update your domain nameservers to match the nameservers that Cloudflare provide you.
G. Wait for domain propagation
H. Test by entering your domain in https://www.whatsmydns.com
I. If you see the IP’s listed above then you can move on to step 2
2. Once domain has successfully been added to Cloudflare we need to set up the page rules.
3. In Cloudflare, go to Rules : Page Rules : Create Page Rule
4. Enter your new domain in this format: your-domain.com/ - this will server as a wildcard to pick up all pages on your website whether the user enters https or http / www or non www.
5. Select ‘Forwarding URL’ from the settings
6. Select 301 as the status code for the permanent redirect
7. Then enter your destination url to match whatever you have set up on your live site: e.g.
https://www.your-main-domain.com/$2 - the /$2 will ensure that all pages will be redirect to the relevant pages. URL matching.
So if someone tried to access 'your-domain.com/contact-us' they will automatically get redirected to https://www.your-main-domain.com/cont... - Awesome!
8. That’s it - test away and be patient while you wait for DNS to propagate.

Chapters:
00:00 Intro
00:15 The issue at hand
01:17 Example of issue to fix
01:56 Adding the secondary domain to Cloudflare
02:24 The all important DNS records required
03:35 Changing domain nameservers
04:21 Basic Cloudflare settings for parked / forwarding domain
05:09 Check domain propagation
05:50 Adding the page rules
07:37 Testing it all works

Subscribe:
https://rb.gy/r8xc8b

Social
Instagram:   / iamdandavies  
TikTok:   / iamdandavies  
Twitter:   / dandaviesiam  

Website:
https://www.iamdandavies.com


Смотрите видео How to Redirect a Domain in Cloudflare Without SSL Issues - Quick and Easy Way! онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь I am Dan Davies 04 Декабрь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 87 раз и оно понравилось 2 людям.