17 votes
Accepted

Why is a link to www.example.software not working?

A link like <a href="www.example.software"> is defined by the HTML/HTTP spec as a relative link. If you are currently on https://www.example.software/ it would result in the URL ...
Stephen Ostermiller's user avatar
8 votes
Accepted

SSL/https breaking when using www

Browsers don’t further access the server when the certificate is not trusted/valid, so the .htaccess redirect can’t work (it should work as soon as the user adds the certificate as an exception). The ...
unor's user avatar
  • 21.7k
5 votes

SSL/https breaking when using www

The "bad cert thing" is triggered by the browser during the SSL handshake. This is the very first thing that happens and occurs long before .htaccess or any of your server-side logic has a chance to ...
MrWhite's user avatar
  • 42.8k
4 votes
Accepted

How to redirect example.com to http://example.com?

Google Chrome (and possibly other browsers) hide the http:// part in the browser address bar, but it is there. If your site is accessible on example.com then you are accessing it at http://example.com/...
Tim Fountain's user avatar
  • 4,454
4 votes

How/why did non-www version of page on my site get indexed?

If there are any links to the non-www version of the URL from anywhere then it can result in the non-canonical URL being indexed. Also check that you have: the correct rel="canonical" link ...
MrWhite's user avatar
  • 42.8k
3 votes
Accepted

Why in the modern world I would need my .com website to also have www subdomain?

This answer contains my comment and then @dan's comment. Both show two different thoughts on the subject. Combined, they make a good answer. Any other points are certainly welcome. The value of www ...
closetnoc's user avatar
  • 32.8k
3 votes
Accepted

No "http://" or "www" in front of URL when visiting newly purchase domain from GoDaddy

http is a protocol, it's always present on a full URI. It can be replaced by other protocols such as FTP or HTTPS. the www. is a subdomain. This is part of a fully qualified domain name. If you're ...
L Martin's user avatar
  • 4,003
3 votes
Accepted

How to eliminate duplicate titles for a website URL using www.example.com and example.com

Regarding the comment on your question, you only have one site which is served to your users with the two versions of the site (with www and without www). Therefore, you need to 301 redirect one ...
Zistoloen's user avatar
  • 10k
3 votes
Accepted

Which one to add in google webmaster tool. www or non-www?

You should add both. You can add both and the two may show you different information. It is most important to add the one that you intend having your visitors use. You should pick one "canonical" ...
Stephen Ostermiller's user avatar
3 votes

Best practice for using 'www.domain' vs. naked domain?

I have seen this issue from time to time, and for a website like yours, which was not given a designation of either "www" or "non-www" (a.k.a. naked), the smartest thing to do is ...
Josh Salganik's user avatar
3 votes

redirect www to non-www (CNAME needed?)

To implement a redirect, your www subdomain must resolve to a web server that issues a redirect to your non-www domain. It doesn't matter whether you use A records or CNAME records to make that ...
Stephen Ostermiller's user avatar
3 votes
Accepted

nginx: 301 redirect to non-www, SSL urls on default_server(s)

The http server does not require a specific certificate, so all domains can be redirected to https non-www with a single server block. For example: server { listen 80; server_name ~^(www\.)?(...
Richard Smith's user avatar
3 votes

My root domain is not resolving to my server, but the www. subdomain works fine

To resolve your host name to an IP address you need either an A or CNAME record for it. For a bare domain, it has to be an A record, a CNAME only works for sub-domains. You don't have an A record ...
Stephen Ostermiller's user avatar
3 votes

How/why did non-www version of page on my site get indexed?

MrWhite has given a good answer about why this might be happening, but I just wanted to address the other part you mentioned: ...and avoiding introducing potential problems down the line (for SEO, ...
FluffyKitten's user avatar
3 votes

Will changing a site from no-www to using www affect SEO?

as long as you 301 redirect the 'naked' (i.e. non-www) domain to the www, you should be fine.
Jake 1986's user avatar
  • 863
3 votes
Accepted

How do I get .app TLD to work with my .htaccess

You've basically answered your own question... I know that Google owns this TLD and it has to be secure. They give "COMMON_NAME_INVALID" or similar That's an SSL cert error (in the ...
MrWhite's user avatar
  • 42.8k
3 votes
Accepted

GoDaddy forwarding for bare domain to www is not working for a .dev domain hosted by Blogger

GoDaddy doesn't support HTTPS for forwarding redirects. You have a .dev domain which requires HTTPS. To redirect your bare domain to www., you will need to use a different service that supports HTTPS. ...
Stephen Ostermiller's user avatar
2 votes

Does www and non-www suffer duplicate content penalty?

The duplicate content penalty is a myth. There is no penalty. Read more: The myth of the duplicate content penalty - Search Engine Land The truth is that Google is very good at automatically ...
Maximillian Laumeister's user avatar
2 votes

Does www and non-www suffer duplicate content penalty?

John's answer is spot on however if your looking for advice which one is technically the best then the actual the answer is all 3 options. SOURCE: Pro Webmasters Answer from John Conde Do a 301 ...
Simon Hayter's user avatar
2 votes

GoDaddy URL forwarding while keeping relative path

If anyone's coming here from a search result after struggling with this issue, GoDaddy have officially said (as of 2018-07-16) that their domain forwarding no longer supports URL paths. Our ...
Phurl's user avatar
  • 21
2 votes

How to eliminate duplicate titles for a website URL using www.example.com and example.com

You have many ways to make it, if you want the users to access both versions with WWW and without, you can use canonical link from one version to the another one. EX: From the non WWW version <...
Nadeem Haddadeen's user avatar
2 votes
Accepted

Include "www" in sitemap URL in robots.txt when site redirects to no-www?

In your situation, Don't include "www" because web crawlers that do read the sitemap directive from your robots.txt will attempt to access the "www" version of your sitemap and then be redirected to ...
Mike -- No longer here's user avatar
2 votes

non-www along with https

Here is the shorter version of your code : RewriteEngine on RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [NE,L,R]
starkeen's user avatar
  • 135
2 votes
Accepted

non-www along with https

I solved this problem via : RewriteCond %{HTTP_HOST} ^(www\.example\.com)(:80)? [NC] RewriteRule ^(.*) https://example.com/$1 [R=301,L] RewriteCond %{SERVER_PORT} 80 [NC] RewriteRule ^(.*)$ https://...
PersianGulf's user avatar
2 votes
Accepted

SEO and www to non-www (and vice versa) AFTER having settled for some time in one of them

As you'll be using a redirect from non www to www all the previous incoming links and URL's will still be working and pointing to the correct content, so your SEO scores should not be affected. The ...
Alari Truuts's user avatar
2 votes

SSL/https breaking when using www

While it is a good idea to get the certificate for your www subdomain as well, you could try setting up a redirect at your nameserver level too. Almost all of the DNS solution providers have the ...
hjpotter92's user avatar
2 votes
Accepted

www to non-www redirect - is duplicate content a big issue?

It's fine to have both https://www.example.com and https://example.com, though it's not preferred and it can cause some issues. The major issue is duplicate content. Google won't know whether to ...
Michael d's user avatar
  • 4,803
2 votes
Accepted

Why is duplicate content bad?

Google penalises duplicate content for two reasons: Duplicate content (across different domains) suggests that you don't own the content, or that you copied the content Duplicate content has a ...
Double Clicked's user avatar
2 votes

My www version has better metrics than the non-www, so I'm preferring it in search console now. What else do I need to do?

You should use a 301-Redirect, which is a server response that claims google that this site just moved to another domain and isn't just temporarily unavailable or something. On top of that you ...
jDoe's user avatar
  • 21
2 votes

Redirect from www and http to https doesn't work on sub-domains

I would implement it as two rule sets. First I would redirect any www URL then in a second rule I would redirect HTTP. RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.(.*) [NC] RewriteRule ^ https:...
Stephen Ostermiller's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible