This article is for adding sub-domains and when you want to keep your existing site on your current domain. If you would like to replace your site or use an entire domain, please see our article Setting Up a Custom Domain 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 to setup up a custom subdomain – such as "videostore.yourdomain.com" – for your VideoStock 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 outside the scope of this article, 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 Your Domain on the Getting Started Page or Click "Add a Site" at the Top of the Screen
If you have just set up your CloudFlare account you will be taken to the Getting Started Screen. If you already have sites in your CloudFlare account, click the Add a Site link at the top of the page.
Step 3: Add your Subdomain with an A record
After your DNS records have been scanned, you will need to verify all of your existing records.
Above all your existing DNS settings, you will see an area to add more.
- First click the dropdown on the left and select A record. Then type in the name you want to use for your subdomain. For this example we used 'store' which would result in 'store.yourdomain.com', but you can use whatever you want.
- Then for the box that says 'IPv4 address' enter 126.96.36.199
- After you have edited those fields, click the green Add Record button on the right.
Step 4: Verify Subdomain Is Active
After you have added your subdomain, make sure the 'Cloud' icon to the right of it is orange. If it is grey, just click it and that will change it to orange. Once the 'Cloud' is orange, your subdomain is active and you just need to add it inside of VideoStock.
Step 5: 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 6: Update your domain mapping settings in your Videostock dashboard
Simply log into your Videostock dashboard and go to Settings > Domain Mapping and enter your full subdomain + domain into the box provided and click the Map Domain button.
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 Sub 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