www. subdomain and DNS problem

Hi,

I'm using Bootstrap hosting service and i have a problem with DNS. mydomain.com is all good. But www.mydomain.com brings Bootstrap's 404 page. So the DNS is heading to Bootstrap's server, but it doesn't show MY website.

This is my DNS setup on Cloudflare:

CNAME mydomain.com sites.bootstrapstudio.io CNAME www sites.bootstrapstudio.io

Would you please help me to solve this problem?

Thank you

Thank you for starting this thread! With these DNS settings mydomain.com and www.mydomain.com are two different websites which you will need to add to Bootstrap Studio, and publish to both places, which is cumbersome.

To work around this, you can configure cloudflare to redirect www.mydomain.com to mydomain.com and everything should work. Here is a post on their forum which goes through the process.

Thank you for your reply Martin!

I made a page rule in Cloudflare.

www.mydomain.com/*

Add a setting, and then Forwarding URL, 301 Permanent Redirect, to https://mydomain.com and now its working!

Hello, just trying to host my first site on your hosting and set the domain redirection from non-www → www.
I followed these instruction at Redirecting www to non www - #28 by Judge - Getting Started - Cloudflare Community

  1. Add dns A record: A www 192.0.2.1
  2. Add redirection a Rule

Seems the solution is not working for me

I also have tried to change IP adresses in DNS A to adresses from reverese lookup for my domain but still not working

Can anyone advise me?
thanx!

You don’t need an A record. The CNAME that points to sites.bootstrapstudio.io does the job.

Hello, thaks for your reply! Dns A record deleted, but the same issue.

See my domain pornoprace.cz

Here are the printscreens with actual cloudflare setting:

Any idea?

If you are going to use the www version as the official website, the cname should use it. At the moment no www subdomain exists on your site.

Schould I create the second CNAME record with the WWW subdomain? I am not sure I understand what do You mean. Could You provide me the step-by-step gudie how to run website with the www as the primary version on BSS hosting. Many thanks!

Cloudflare

You can try this

TYPE Name Content Proxystatus TTL
CNAME pornoprace.cz sites.bootstrapstudio.io Proxied Auto
CNAME WWW @ Proxied Auto

HEUREKA!! Got it.

Follow this guide Hosting Custom Domains | Bootstrap Studio - when publishing a website in your bootstrapstudio set the www.pornoprace.cz instead of pornoprace.cz in custom domain setting: https://snipboard.io/kjs70q.jpg

The cloudflare setting is following:

Now all works for me