Skip to main content
9 events
when toggle format what by license comment
Aug 3, 2021 at 15:35 comment added Stephen Ostermiller It depends on how your site is hosted. If you are using cPanel based shared hosting then rewrite rules in.htaccess is a good option (and usually the only option). If you have control over your web server config, I usually suggest creating separate virtual hosts for www and no-www and using Redirect directives in the one you want to redirect. If you are using some other web server (like IIS or Nginx) then you would need to consult the documentation for it. If you are using a managed hosting service (like Google Sites, or Wix) redirects get implemented in their interface.
Aug 3, 2021 at 14:52 comment added Wally Would the ideal place to do this be in the .htacsess file?
Aug 3, 2021 at 14:44 comment added Stephen Ostermiller Your site works with www or no-www. If you configure it to redirect to no-www rather than relying on canonicals, redirects are stronger signal and Google is much more likely to choose your preferred URL if you use redirects.
Aug 3, 2021 at 14:38 comment added Wally Hi @StephenOstermiller - Thank you for your feedback - adding the www. version of the webpage to google search console did reveal that it was the www. version that was indexed - this is odd in my mind - as I have a http to https redirect the website also loads as X.com not www.X.com - I am yet waiting for the data of the site to be collected as a metric - I was wondering if you had any resources to share on this knowledge? The suggested duplicate question does not seem to cover this issue - however I will most likerly need to re-write the question. Thanks again for you help - W
Aug 3, 2021 at 12:20 comment added Stephen Ostermiller Google doesn't always honor canonical tags. For whatever reason, Google thinks that including the www in the URL is better. You can see data about your site in search console if you add the prefix property with https://www or you add the domain property.
Aug 3, 2021 at 12:18 history closed Stephen Ostermiller seo Duplicate of What is the solution for "Submitted URL not selected as canonical" in Google Search Console beta?
Aug 3, 2021 at 11:40 history edited John Conde CC BY-SA 4.0
deleted 242 characters in body
Aug 3, 2021 at 11:02 review First posts
Aug 3, 2021 at 11:40
Aug 3, 2021 at 10:56 history asked Wally CC BY-SA 4.0