My website only comes up if www. is before the domain name

My website will not come up unless there is a www. before the domain name. Please help.

And what error do you see when you omit the www?

Also, what is the domain?

jeffreyschwartzphotography.com. It just times out on my phone without the www. Thank you!

It looks like the version without www is not configured with your hosting service.

Make sure you have set up both the version with and without www if you want to use both.

1 Like

I will contact them. Thanks. I have no idea how to do that.

1 Like

Web.com is telling me it is a setting at Cloudflare.

They are wrong. The version without www has the same DNS records as the www subdomain, but the server is not configured for it.

curl -svo /dev/null https://jeffreyschwartzphotography.com
*   Trying 2a09:8280:1:cc23:8890:9989:5a6b:1f1c:443...
* Connected to jeffreyschwartzphotography.com (2a09:8280:1:cc23:8890:9989:5a6b:1f1c) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: /etc/ssl/certs
* TLSv1.0 (OUT), TLS header, Certificate Status (22):
} [5 bytes data]
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
* TLSv1.0 (OUT), TLS header, Unknown (21):
} [5 bytes data]
* TLSv1.3 (OUT), TLS alert, decode error (562):
} [2 bytes data]
* error:0A000126:SSL routines::unexpected eof while reading
* Closing connection 0

You can see that there is only (OUT), no (IN). That means the server is not responding for that domain, so the connection is aborted.
This is what it looks like for the www version:

curl -svo /dev/null https://www.jeffreyschwartzphotography.com
*   Trying 2a09:8280:1:cc23:8890:9989:5a6b:1f1c:443...
* Connected to www.jeffreyschwartzphotography.com (2a09:8280:1:cc23:8890:9989:5a6b:1f1c) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: /etc/ssl/certs
* TLSv1.0 (OUT), TLS header, Certificate Status (22):
} [5 bytes data]
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
* TLSv1.2 (IN), TLS header, Certificate Status (22):
{ [5 bytes data]
* TLSv1.3 (IN), TLS handshake, Server hello (2):
{ [122 bytes data]
* TLSv1.2 (IN), TLS header, Finished (20):
{ [5 bytes data]
* TLSv1.2 (IN), TLS header, Supplemental data (23):
{ [5 bytes data]

... and so on

What you could do in Cloudflare is to configure a redirect that automatically redirects people from the not-working https://jeffreyschwartzphotography.com to the working https://www.jeffreyschwartzphotography.com.

For that, you would change your jeffreyschwartzphotography.com DNS record in Cloudflare from DNS-Only to Proxied.

Then, you’d need to create a Redirect Rule as described in example 1 - Canonical redirect (naked domain to www.) here:

1 Like

I think it is fixed. A support person setup Redirect Pizza. I really appreciate your time!

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.