Domain showing without www

What is the name of the domain?

trendometric com

What is the issue you’re encountering

When i see in browser, it shows example.com instead of www.example.com. When i click on www.example.com it redirects to example.com… I want opposite of it…

What feature, service or problem is this related to?

DNS records

Are you using Google Chrome?
Might be if you enter www.trendometric.com it trims out the www part by default.
When Chrome 69 was released in September 2018, Google decided to strip the “www” and “m” “trivial subdomains” from the URLs in the address bar. For example, when a user visited www.example.com, the www part would be stripped and displayed as example.com instead.

Is this the case, otherwise Website with www does’t load for you at all?

Nevertheless, the www does work but you’ve got a redirection setup:

$ curl -I https://www.trendometric.com
HTTP/2 301 --> Redirect happening here
date: Sun, 12 Jan 2025 22:21:28 GMT
content-type: text/html
content-length: 167
location: https://trendometric.com/ --> Goes to non-www

Could you check, by any chance if you’re using some Redirect Rule, or Page Rule at Cloudflare dashboard which does the redirection?

Before proceeding with instructions from below articles, double-check how your web application (Astro?) is configured and works since all the permalinks would neded to be changed, otherwise you might experience some redirection loops while proceeding.

Kindly, ask developers to cross-check your Astro config.

Helpful articles:

Examples:

2 Likes

Thank you for your detailed response. Much appreciated.
Website both with and without www loads for me… It’s just i do not want rediction to non-www. I want website to be load by default to www… I am not using any Redirect Rule at Cloudflare dashboard. Any help would be highly appreciated.

I haven’t used, however I’d suggest checking how Astro routing is configured.

You’d have to determine where the current redirection is happening at first sight.

1 Like

I checked. There is no redirection happening in Astro. It seems more of missing DNS settings. Thanks in advance.

DNS alert shows -
Add an A, AAAA, or CNAME record for www
Add an A, AAAA, or CNAME record for your root domain

more like the redirect is being done by your website or in your hosting control panel.

1 Like

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