Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
Coupe WPB
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

WWW vs non-WWW – Qu’est-ce qui est mieux pour le référencement de WordPress ?

Lorsque vous créez un site, vous devez choisir une structure d’URL. Certains sites utilisent « www » (comme www.example.com), d’autres non (comme exemple .com). Quelle est la meilleure solution ?

Il existe des différences techniques entre les deux formats d’URL et de nombreuses personnes nous demandent quelle option est la meilleure pour le référencement. Nous allons vous donner une réponse simple basée sur notre propre expérience, et vous indiquer ce que nous utilisons sur nos propres sites.

Dans cet article, nous vous aiderons à comprendre la différence entre les URLs www vs. non-www et laquelle est la meilleure pour le référencement de WordPress.

WWW vs non-WWW - Which is Better For WordPress SEO?

Mettons les choses au clair avant de commencer.

Pour un utilisateur/utilisatrice moyen ou un propriétaire de petite entreprise, il n’y a absolument aucun avantage à choisir une URL de site www ou non www. Tout est question de préférence personnelle.

Oui, il existe une différence technique entre les deux, que nous aborderons ultérieurement dans cet article. Mais pour la plupart des gens, cela n’a pas d’importance.

Tutoriel vidéo

Subscribe to WPBeginner

Veuillez poursuivre votre lecture si vous préférez un tutoriel écrit.

Avantages SEO du WWW par rapport au non-WWW

Les lettres « www » signifient « World Wide Web » et se trouvent au début de nombreuses adresses de sites web. Cependant, de nombreux sites n’utilisent pas du tout les lettres « www ». Alors, qu’est-ce qui est le mieux ?

Lorsque vous choisissez une URL pour votre site, vous devez savoir qu’il n’y a absolument aucun avantage pour le référencement à choisir www ou non www. Vous devez simplement choisir celle que vous préférez.

Ce qui est important, c’est que vous restiez cohérent. Vous devez continuer à utiliser la même URL que celle que vous avez choisie lors de la création de votre site WordPress.

En d’autres termes, vous ne devez jamais modifier l’URL de votre site pour ajouter ou retirer le préfixe www. En effet, les moteurs de recherche comme Google considéreront les versions www et non www comme deux sites différents, ce qui entraînera des problèmes de contenu dupliqué et une baisse du classement.

Toutefois, si vous utilisez l’extension All in One SEO (AIOSEO), ce problème est retiré. AIOSEO définira automatiquement l’URL canonique dans l’en-tête de votre site comme www ou non www et informera Google de votre préférence personnelle.

C’est tout ce que vous avez à faire. Vous pouvez consulter notre guide sur la façon de configurer All in One SEO dans WordPress pour plus de détails.

Vous vous demandez peut-être quelle est notre préférence entre www et non-www.

Sur le site WPBeginner, nous avons choisi d’utiliser www. Cependant, d’autres sites tels que optinMonster.com et wpforms.com n’utilisent pas www.

Il s’agit juste d’une préférence personnelle, c’est tout.

Différence technique entre WWW et non-WWW

Lorsque vous ajoutez www devant l’URL d’un site, il s’agit d’un nom d’hôte. Cela est utile à plusieurs égards, comme la flexibilité avec le DNS, la possibilité de restreindre les cookies lors de l’utilisation de plusieurs sous-domaines, etc.

D’un autre côté, les domaines non-www, qui sont également appelés domaines nus, ont certaines limitations techniques. Par exemple, un fournisseur de CDN ne peut pas rediriger le trafic d’un serveur défaillant vers un serveur sain sur un domaine nu.

Toutefois, ces différences techniques se font sentir uniquement si votre site reçoit quotidiennement des millions de pages vues. Pour la plupart des utilisateurs/utilisatrices, elles ne font aucune différence.

Guides d’experts sur les URL de WordPress

Nous espérons que cet article a aidé à dissiper toute confusion entre www et non-www pour l’URL de votre site. Vous pouvez également consulter d’autres guides liés aux URL de WordPress :

Si vous avez aimé cet article, veuillez alors vous abonner à notre chaîne YouTube pour obtenir des tutoriels vidéo sur WordPress. Vous pouvez également nous trouver sur Twitter et Facebook.

Divulgation : Notre contenu est soutenu par les lecteurs. Cela signifie que si vous cliquez sur certains de nos liens, nous pouvons gagner une commission. Consultez comment WPBeginner est financé, pourquoi cela compte et comment vous pouvez nous soutenir. Voici notre processus éditorial.

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

L'ultime WordPress Toolkit

Accédez GRATUITEMENT à notre boîte à outils - une collection de produits et de ressources liés à WordPress que tous les professionnels devraient avoir !

Reader Interactions

61 commentairesLaisser une réponse

  1. John Culotta

    Great post, thank you. Question, I changed my sites over to a new host. They automatically changed the primary domain to the NON-www. For years they have had the www. Should I change it back? Will this mess up rankings of very old pages/posts? Thanks!

    • WPBeginner Support

      If you set up redirects there should be no SEO change for your content.

      Administrateur

  2. Frances

    Hello! Thanks for this great article. Also: Help! I’ve just changed my (relatively new) non-www site to www because the new Google Search Console was being finicky. Have I just screwed up my SEO completely? Do I really need to use redirects? Thanks so much. Best, Frances

    • WPBeginner Support

      You have not screwed up your SEO, As long as your site has the canonical URL set through your SEO plugin you should be fine.

      Administrateur

  3. Rachel

    I have used a few speed testing tools (GT Metrix, Pingdom, Google PS) and have entered my site with and without www. In each test my site received a better rating if I entered with www. Does the www actually impact speed or is it just a fluke?

    • WPBeginner Support

      It would depend on the specific warnings or messages but most likely, your hosting provider is redirecting one of the URLs to the other causing the slowdown which would mean it is nothing to worry about.

      Administrateur

  4. Sean

    What if I have both non-www and www version on my site? I previously use www version and it’s just okey. But, then I need also non-www version to verify with GA. Do I need redirect or it’s just fine. What about the penalty from Google for having same domain and subdomain?

    • WPBeginner Support

      Google Analytics accepts www versions of sites, you would want to also ensure you set your preferred domain with Google.

      Administrateur

    • Peter Iriogbe

      My little addition to what the admin has answered you.

      Having both non-www and www versions of your site without proper redirection can lead to duplicate content issues. It’s advisable to set up a 301 redirect from one version to the other to ensure consistency and avoid potential SEO penalties from search engines like Google.

      Regarding penalties, having both versions (www and non-www) typically won’t result in a penalty, but it’s crucial to pick one as the preferred version and redirect the other. Google may treat them as separate entities, potentially impacting your search rankings. Choose either www or non-www, set up the redirect, and stick with your preferred version for better SEO.

  5. ARPIT

    I am Satisfied with this Article. Thanks for This type of Informative article. This article Answered my question.

    • WPBeginner Support

      Glad you liked our article :)

      Administrateur

  6. Giacomo Lawrance

    I changed mine just now to www from non www, will this damage my prexisting SEO? I already have both added to Webmasters and just changed my preference.

    Thanks

    • WPBeginner Support

      If you set up the canonical url then it should have minimal effect on your SEO.

      Administrateur

  7. Mintrx

    When I enter URL directly of my website after clearing cache then store id is displayed along the url is it good for seo or not.
    Here is the url:
    example.com/?SID=1234

    • WPBeginner Support

      They can be considered duplicate content when indexed, you can use Google’s URL parameters tool to avoid indexing those.

      Administrateur

  8. Ahmed

    This is very informative for me

    THANKS, WP Beginner,

    WordPress users exist because you guys exist on internet, otherwise many people got distracted and ruined their business.

    All best for you.

  9. Jerry

    What is the risk of changing fron non-www to www site ?

  10. Sonam Sinha

    thanks knowledge of url for seo

  11. Phil

    This would be important if the domain was used before buying it so its important to check any existing backlinks as there may be a benefit to www or non www depending which has the best metrics.

  12. Khalid Abubakar

    Hello, thanks for this great article I have successfully verified my side with www but to set www based version as my preferred one, I have to also verify the non-www version which fails after I add the tag and use other means of property verification but to no avail please help how I can achieve that… My site is

  13. Muhammad Abbas

    Hello, After setting my preferred domain to www version , my non www version is showing me robots.txt fetch error, while in www version i have no such error. i set 301 redirect from non www version to www version too.
    But due to fetch error i cant see any indexing on non www version so what should i do with robots.txt fetch error for non www version of my site in search console.
    Sir/Mam, i am eagirly waiting for the reply.
    Thank you

  14. Prakash

    Hi,
    I have a domain and Indexed like http://example.com/ (not www) and I added my site(same domain) in webmasters like http://www.example.com/ (www included) and I’m not getting any data like search and traffic info about the domain and nothing is happening there even after few weeks. is including www in webmasters for the domain is a problem for that? If its that how can I resolve it? Please give me some suggestions to overcome it

    • WPBeginner Support

      Hi Prakash,

      Yes, this is the problem. You need to add your non-www URL to webmaster tools.

      Administrateur

  15. Fabio

    I have always wondered if not including the www in my url hurt SEO. Thanks for the article. Answered my question.

  16. Strats

    Hi guys, I have a site configured as non-www but the www results are better than the non-www ones. Should I switch to www?

    Thanks!

    • WPBeginner Support

      Hi,

      If you are saying that the same website is indexed with both www and non-www URLs on the same domain name, then this is actually causing the duplicate content issue for Google. You would need to pick one and stick to it. You will also need to redirect users and search engines from the URL format that you drop.

      Administrateur

  17. Shahas

    why https is not showing in your url…i assume you have SSL

  18. david

    If your site is on cloudflare, your address will become a www address

  19. Nitin

    My site is without www so is it good or bad ?

    • Cezar

      Did you read the article? Does it matter www or no-WWW

  20. Gustavo

    i just launched a new wp site using a subdomain – new.example.com. One of my friends told me « not working as http://www.new.example.com« . So i checked and sure enough it wouldnt come up with the http://www., just « http://new.swirlspace.com »

    So i went into the dashboard and changed it from http://new.example.com to http://www.example.com and as soon as i clicked « save changes » the site hasnt been able to be located anywhere, not even in wp dashboard.

    not sure what to do to get i back online, and am just reading here to NOT change it after the initial time… so, any ideas? didnt backup since i had literally just finished it enough to announce it but was still working on adding many pages and features

    • WPBeginner Support

      As we have mentioned above, the www is technically a subdomain itself. Some web hosts configure their servers in a way that automatically redirects users to non-www url when someone tries to access it with www. It seems your host doesn’t support this by default. This means when you changed URL from WordPress settings to http://www.new.example.com, then it started pointing to a subdomain that does not exist.

      Here is how you can fix it. Connect to your website using FTP. Go to your the folder containing your WordPress files. Then go to /wp-content/themes/your-wordpress-theme/ folder and open the functions.php file. Add this code at the bottom of your functions.php file:

      update_option( ‘siteurl’, ‘http://new.example.com’ );
      update_option( ‘home’, ‘http://new.example.com’ );

      Replace example.com with your own domain name. Save and upload the file back to your server. You should now be able to visit your website again.

      Administrateur

  21. VINOD KUMAR MAHINDROO

    i have set my preferred domain with www but i had done my seo submission without www. is their any technical issue in serp.

    • WPBeginner Support

      Yes, you will need to redirect users and search engines if they are not already being redirected.

      Administrateur

  22. Dustin Brohm

    Here’s the question… just learning about SEO now. Before I setuo my new website I was putting my links all over the web as www. But then my new website shows up as non-www. Is google seeing this as 2 different websites? Are they not connecting the backlinks that have a www to the new website that is non-www?

    If all my backlinks have a www, should I have my website person change my site to include www? This has been so confusing to me, so hopefully you can clear this up

  23. Philip

    Thanks for this tip – what is stupid is that Google gives you the opportunity to change the version in WebMaster Tools but they do not pass the domain authority from the old to the new…

    I saw this option after noticing that no one uses www anymore in conversation and it seems more streamlined (less is more?) so I removed it. I ended up losing massive amounts of SEO juice and that could have ruined my business.

    If Google is going to let you change, then why don’t they send the juice with the change!?!?!?!?!

    • Barry

      Maybe you didn’t understand that www is a subdomain. When you switched, you technically changed your website’s « home ». You moved homes from the subdomain www to the « base » URL.

      Google let’s you update your webmaster to tell them you’ve moved homes. They won’t « send the juice » to your new URL because you didn’t gain the rank using that address.

      Effectively what you’re asking for is « tradeable » SEO. Not happening buddy :D

  24. Brittney

    Where can this be adjusted in yoast?
    After making sure the redirect for www to non-www is in place, how long before webmaster tools will index the non-www version.

  25. munish

    confusing article not clearly said to which is best or which you preffer any way thanks

  26. Mike

    Thank you for the article, it answered a couple questions I have had. I am wondering if we set our preferred domain with Google WMT and set the same domain structure (non-www) in the wordpress settings does that alone define the canonical url? or should we also add a www to non-www 301 in our htaccess file? Thank you

    • sid

      Seriously guys I would always choose www.

      I decided to choose non www. because I liked it better but I am now having all kinds of problems later down the line.

      For example.

      My host offers cloudflare at a reduced rate. After spending 19 days on tech questions they now tell me that I cannot have a non www. domain running cloudflare through my control panel.
      Instead I have to go to cloudflare and set up through them at an extra 15 dollars a month. :/

      In changing over I have also had problems with my ssl certificate.

      Non www. just isn’t as flexible at DNS.

      This situation has got very messy the further I have progressed with it and multiple changes in htaccess, server setup and code have been needed to maintain proper operation. It isn’t worth it, it slows your site eventually through all the mess it creates.
      Some of the problems I have encountered have been my own fault but I like you was stumbling blindly into stuff and just did what I was told. The free advice wasn’t always all that great and now I’m in a bit of a mess that could of been avoided if someone would of just warned me against the vanity of the non www.

      When I was first reading this up everyone was like… Oh yeah use non www. if you like…Google doesn’t care. Well I now have all my webmaster tools set up, analytics, company stationary, business cards and all the rest done and my site won’t work properly with cloudflare. I think there may be a work around at cloudflare but to use a cname requires a business account at £200 a month.
      I haven’t fully investigated that option because I can’t afford it before anyone asks.

      Also, I get the redirect thing but it’s not the point? It’s all extra work that can be avoided and when your site gets big it adds up.

      If your coming to this raw I would advise you to set up as www. If nothing else to save yourself months and months of reading and frustration.

      You have been warned.

      • Eder Lugo

        Dude. I’m running my domain without www under cloudflare with SSL for FREE, maybe is something about your server. You can see my site here:

      • Alin Pogan

        Hi SID,

        I use for several years the www. and no www. for my blogs and its no technical issue, the only problem is with the SSL certificate, you must release it with the www. version so it can work on both versions if you release it on non www. it will work only on your non www. site.

        Hope it helps.

  27. James Canning

    Its so obvious that wpbeginner changes the date on their old posts to make old content look newer.

    • WPBeginner Support

      We do not change dates. Actually we display the last updated date of a post and not the published date. We regularly update our old articles with new information. We update screenshots and make corrections when necessary.

      Administrateur

      • Lonnie Jones

        Yeah, I do the same thing. Every year I have to re-evaluate the « best » overall tools. If I find something important sooner than later then I just post it immediately.

      • Brandon Still`

        Kudos to you guys for getting proper use out of your blog posts! Seriously folks, if you are a blogger and do not regularly revitalize and update old posts you are missing out on opportunities!!!! I see nothing wrong with updating older posts and displaying the recent updated date as opposed to the original post date.

  28. Erick

    I don’t think you really need to worry if you want to change the url from www to non www or vice versa at a later date. You don’t really need to be consistent anymore.

    Wordpress 2.3 version has already improve on this and the only thing that is needed is to go to your wordpress settings->General and add or remove www. wordpress will automatically change all redirects by itself and you don’t have to do a thing, you don’t lose anything, no serp no likes nothing. The only thing you need to change is your webmaster tools url and thats it. Google might take a bit to index all your pages again but google its pretty fast.

    In conclusion don’t worry if at a later date you want to change your url again. You can do it as many times as you want.

    • Gillian

      Hi Erick, Was trying to find an answer to this question as I too would like to change my non-www to www domain and am thrilled to hear its really this easy! What about internal links and media stored on the site? Will that need to be redone? Also, will I need to update my settings with plugins like jetpack or will they automatically be informed?

      Thanks so much for your comment, it really makes things so much easier for me as I’m very new to wordpress!

      Gillian

  29. heather arnita

    So when you list your bog on other sites should you stay consistent and use www or non depending on your preference?

  30. oescar

    Well if u say so i wont doubt it :))

  31. Praying to the Google Gods

    Let’s just say a designer did change your site from www to non www. And your site dropped out of Google. It is advised to wait it out? Or change it back to www ??

  32. Mark Davis

    Thanks for post such a nice blog,
    But my opinion is this,there are no difference between www or without www effects on seo traffic and ranking.
    But technically www is standard way to represents url address so we should prefer with www url.

  33. cyberarm

    The one click install on most cpanels seem to omit the WWW in the setup. This has been my experience anyway.

  34. ADOLF WITZELING

    Interesting-I didn’t know that. Guess God’s in the detail…the Devil too…

  35. Chris

    Good article. I would just add the importance of doing a 301 redirect from one to the other, whichever way you choose. Thus way all links get resolved to the same domain (subdomain) instead of splitting backlinks.

  36. Becca Heflin

    Great information, but for small bloggers like myself, how do I find out which way I set it up initially? I honestly can’t remember!

Laisser une réponse

Merci d'avoir choisi de laisser un commentaire. Veuillez garder à l'esprit que tous les commentaires sont modérés selon notre politique de commentaires, et votre adresse e-mail ne sera PAS publiée. Veuillez NE PAS utiliser de mots-clés dans le champ du nom. Ayons une conversation personnelle et significative.