Warning: This article is for new domains or when you want to replace your entire site. Be aware that if you have an existing website at the domain you are using, you will no longer be able to access it after following these instructions. If you have an existing site you would like to keep, please follow the instructions found at Setting up a Custom Subdomain Using CloudFlare
Important Note: Any changes you make to your domain can take up to 24 hours due to DNS propagation. This also includes the DNS cache that is stored on your computer. Please wait at least 24 hours and restart your computer before contacting support about a domain not directing properly to your VideoStock site.
In this article, you will learn how to setup up a custom domain – such as "yourdomain.com" – for your Video Store Pro site.
This article assumes you have a CloudFlare account already, if you don't have one, you can sign up for free here: https://www.cloudflare.com/sign-up
Note: If you have any issues with CloudFlare, please contact CloudFlare support at http://support.cloudflare.com
Please follow all steps, in order, before contacting support. These steps, if followed exactly, work every time.
Step 1: Log Into Your CloudFlare Dashboard
The first step will be to login to your CloudFlare dashboard.
Step 2: Add a Site From the Getting Started Page or Click "Add a Site" at the Top of the Screen
If you haven't added any domains to your CloudFlare account, you will be taken to the Getting Started page.
Here you can add your domain and click "Scan DNS Records". The scan will take around 60 seconds to complete.
If you already have added domains to your CloudFlare account previously, you can click "Add a Site" in the top navigation.
Step 3: Add your domain as an 'A' Record
After your DNS records have been scanned, you will be taken to the DNS settings page, the first thing you will need to do is edit the existing 'A' records for your domain.
Simply edit any A records so that they point to the following IP address: 188.8.131.52
Click 'Continue' when you're finished.
Step 4: Update your domain's DNS records with your hosting provider
After clicking continue on the previous step you'll be redirected to the Cloudflare pricing page. Just select the Free option here, it will work perfectly fine.
After Selecting the Free account you'll be redirected to a final page where cloudflare provide you with two new nameserver records. You will need to update your existing nameserver records with these new ones. Fortunately Cloudflare provide full details on how to do this for many of the major companies your domain may be registered/hosted with. Typically updating your DNS records will take anywhere up to 24 hours, although often the process may be complete wihin just 30 minutes to an hour.
Step 5: Update your domain mapping settings in your Videostock dashboard
Simply log into your Videostock dashboard and go to Settings > Domain Mapping and enter your domain into the box provided and click the Map Domain button
Step 6: Setting Up CloudFlare Page Rules
Initially only your apex domain will work. An apex domain is just the root domain name such as 'yourdomain.com'. Many people still add "www" to domains they type, although it is no longer necessary. With the settings as they are, if someone visits 'www.yourdomain.com' it will give an error. To fix this you will need to set up a Page Rule inside of CloudFlare. This is an simple process though, so don't worry.
In your CloudFlare dashboard, click the 'Page Rules' icon at the top of the page.
The first rule you will add is a Forwarding rule so click the little box next to Forwarding to make sure it is 'On.'
Next type your domain with 'www.' in front of it into the first box with a '/*' at the end.
Next type your domain with just 'https://' in front of it followed by '/' into the forwarding box.
After you are done click Add Rule.
Once this is done, all visitors that type 'www.yourdomain.com' will automatically be forwarded to 'https://yourdomain.com'
URL Pattern: www.yourdomain.com/*
Destination URL: https://yourdomain.com/
Step 7: Flexible SSL vs Full SSL (Optional)
If you are using a custom domain with VideoStore and CloudFlare, you also receive the benefit of a Full SSL certificate at no additional cost.
In order to take advantage of this, check your Settings Summary for your domain.
Next to SSL, if it says "Flexible" click on that link.
Select Full SSL and the changes are automatically saved.
Congratulations, Your Custom Domain is Now Set!
Once again, if you have any problems please double check you've correctly followed this guide before contacting support as our first question will be to ask for screenshots from your cloudflare account to verify that the process has been followed correctly.
Note: If you want to continue using email via this domain then you'll need to also follow this guide