Add www subdomain to shopify website

Add www subdomain to shopify website

corenhance
Excursionist
21 0 3

While I was working on my shopify website I noticed something, that my website domain does not show  www subdmain in my web browser which I think is a problem. So I checked some other website for eg. shopify website itself has the subdomain www shown.

Screenshot 2025-01-14 165907.pngScreenshot 2025-01-14 165931.png

 

 

If there  is anything wrong in the question I have asked, it  is due to my  lack of knowledge about domains.

Any help is appreciable. Thank You

 

website- https://www.corenhance.store/

 

Replies 4 (4)

websensepro
Shopify Partner
1903 229 270

Hi @corenhance 

When you set up your Shopify store, the platform automatically configures your primary domain to be used without the "www" subdomain (e.g., yourstorename.com instead of www.yourstorename.com). Both versions (with and without "www") can point to the same website, but Shopify, by default, uses the non-www version.

 

If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
Use our Big Bulk Discount app to boost your sales! 🚀 (https://apps.shopify.com/big-bulk-discount). Easy to set up and perfect for attracting more customers with bulk discounts. Try it now and watch your revenue grow!

Need a Shopify developer? Hire us at WebSensePro For Shopify Design Changes/Coding
For Free Tutorials Subscribe to our youtube
Get More Sales Using Big Bulk Discount APP
Create Your Shopify Store For Just 1$/Month
Get More Sales Using Big Bulk Discount APP
corenhance
Excursionist
21 0 3

Hi @websensepro 

 

In the settings>domain I have set the www version as the primary domain and in the address bar the domain is the www version. But in the seo section the page url is the non-www version of my domain.

websensepro
Shopify Partner
1903 229 270

@corenhance 

Shopify automatically generates canonical tags, but sometimes they might not respect the primary domain configuration if there is a customization in your theme.

To check for canonical URL tags:

  • Go to Online Store > Themes, then click on Actions > Edit Code.

  • Look for the theme.liquid file and check for a line of code similar to this:

    html
    <link rel="canonical" href="{{ shop.url }}">

websensepro_1-1736857525404.png

<link rel="canonical" href="https://www.{{ shop.domain }}{{ canonical_path }}">

And save changes

 

If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
Use our Big Bulk Discount app to boost your sales! 🚀 (https://apps.shopify.com/big-bulk-discount). Easy to set up and perfect for attracting more customers with bulk discounts. Try it now and watch your revenue grow!

Need a Shopify developer? Hire us at WebSensePro For Shopify Design Changes/Coding
For Free Tutorials Subscribe to our youtube
Get More Sales Using Big Bulk Discount APP
Create Your Shopify Store For Just 1$/Month
Get More Sales Using Big Bulk Discount APP
corenhance
Excursionist
21 0 3

Hi @websensepro,

Thank you

I have added the code but it didn't madeany changeScreenshot 2025-01-14 200001.png