Answer the question
In order to leave comments, you need to log in
Why is www added to the site address when there is https?
you have your own website, a subdomain is attached to it, there is an SSL certificate, but the site is not accessible without adding www, after https
the A records look like this:
Answer the question
In order to leave comments, you need to log in
Set up a redirect using .htaccess (if the Apache server returns, if not, then look at nginx or maybe another, then look specifically for your case, but most often it's Apache).
I will not throw a specific link, just go to Google with the question редирект без www на www https
:. From the subtleties, I can note that you will need to set up a double rule and preferably so as not to create an eternal redirect cycle, then the site will fall. And check all possible options when setting up, including http without s.
It's been 20 years since www. still occupies the minds of webmasters. And they produce a bunch of duplicate pages, and then valiantly fight them with the help of redirects and rel='canonical'. And they write a bunch of redundant code to solve the SOP / CORS problems and setting cookies on the www subdomain.
And in the Apache HTTPS server settings, which domain name (the ServerName directive in the configs) is registered to? Not on www.site.ru by any chance?
1. you have a redirect in .htaccess for HTTPS worth www.site.ru - in this case, just lengthen www in this redirect.
2. You have nginx + FPM - configs to the studio
3. You have nginx+apache - there may be problems with HTTP refery , as a result of which the rule for redirecting with www is satisfied.
you can check who and when does this substitution by checking the sequence of server response codes
https://bertal.ru/index.php?a566754
4. You have a redirect to apache and not to .htaccess - config to studio
5. You have a redirect to nginx not in .htaccess - config to studio
6. You have a redirect to php and not to .htaccess - good luck
7. You have a CNC redirect to .htaccess - config to studio
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question