A
A
annonimus2018-02-15 12:23:03
Nginx
annonimus, 2018-02-15 12:23:03

What could be the problem Google Analytics is giving a warning - extra hostnames?

Good day to all! Guys, Google Analytics complains that the redirect from www.site.com to without site.com is not configured, although the redirect itself is configured and redirects. But Google alone swears, writes ... For the site resource, data is received from duplicate host names. Examples:
site.com
www.site.com
Here is the config:

server {
        server_name www.site.com;
        rewrite ^/(.*)$ http://site.com/$1 permanent;
    }

server {
        listen 80 default_server;

        server_name site.com;

Any thoughts on this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artyom Tsyplakov, 2018-02-19
@annonimus

Hey!
But show me the domain, please, I don’t want to do telepathy :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question