• Resolved guerrilladigital

    (@guerrilladigital)


    Is there a way to redirect https://www.domain.com traffic to non-www version of the same domain?

    Google Search Console has all the www versions of the old site, but since another developer rebuilt the site and it now has non-www base URL, all those links are coming up with errors in Google Search Console.

    Is there a way to redirect them all to the non-www version of the site?

Viewing 1 replies (of 1 total)
  • Plugin Author Alexandru Tapuleasa

    (@talextech)

    Hi,

    You should do that via a .htaccess redirect, it’s a lot simpler and you don’t have to keep an extra plugin active just for that. Just add this at the top of .htaccess:

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

Viewing 1 replies (of 1 total)
  • The topic ‘Is there a way to redirect www.domain.com traffic to non-www version?’ is closed to new replies.