"www" missing from Google results

Hi :slight_smile: My Cloudflare-protected domain is being listed in Google search results without the β€œwww”. For example:

https://domainname.com instead of https://www.domainname.com

Where is the setting to correct this? Thanks! :slight_smile:

There is no setting. Redirect to the proper one in your server or use pagerules

The solution, in case anyone is wondering, is… your site needs an htaccess file to manage the redirect, if it is protected by Cloudflare. If you build with a builder like Joomla, Wordpress, etc, then it is done via their admin. However, if you built it yourself, you need to manually create the htaccess. Here is what it should say:

RewriteEngine On

RewriteCond %{HTTP_HOST} !^www. [NC,OR]
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^(?:www.)?(.+)$ [NC]
RewriteRule ^ https://www.%1%{REQUEST_URI} [R=301,L,NE]


This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.