• Resolved José Leonardo

    (@joseleonardo)


    Hi,

    I am struggling to understand why this is happening for about two weeks already.

    I am trying to drop the “www” from a blog I am working in, actually, it is already using https and non-www for a long time, but I’ve consulted a SEO company and they introduced me this website https://www.urlitor.com/

    Whatever I type on the browser my blog always redirects me to the https and non-www as expected, but if I type my blog URL with “www” on urlitor it doesn’t show the redirect to the non-www version, it is only showing the http to https redirection.

    When I type on Google site:mydomain.com I’ve noticed most of my search pages are being indexed with “www” and al the others contents are being indexed without “www”.

    Does anyone know how can I solve this?

    Thank you!

Viewing 1 replies (of 1 total)
  • Thread Starter José Leonardo

    (@joseleonardo)

    I’ve made a change on my .htaccess and now when I click on some of these links with “www” I am being redirected to a non-www version, I think Google will start to cache the right URL now.

    But what I didn’t get is, none of these http redirection checkers are detecting my htaccess redirection, even with my browser redirecting me, I can’t reproduce the same result on there.

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
    RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
    RewriteCond %{HTTPS} on
    RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
    RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
    </IfModule>

    Does anyone know why?

Viewing 1 replies (of 1 total)
  • The topic ‘Google indexing WordPress search with “www”’ is closed to new replies.