404 pages Redirect rules

www not redirecting to non-www on cloudflare

Recently I encountered an interesting issue with redirection from www to non-www. The non www site worked perfectly after migration to SSL, but the www site gave a 404 not found error, or a SSL server error.

The issue was solved in the end by the hosting company.

If a user has connected a site to Cloudflare using the service offered by many hosting providers within Cpanel then ONLY the domain at the root will be used.

If you have installed your site in a folder marked “mysite.com” then automatically connecting to Cloudflare means only http://mysite.com is actually running.

The www version will or “may” not work.

To convert your site to https you must first remove the site from Cloudflare and ensure that the name servers recommended by their hosting provider is being used.

Then do the conversion of the site and get everything set up correctly.

Finally they must manually re-add the site back into Cloudflare through the Cloudflare interface and NOT using the auto feature in Cpanel.

Once that is done and the name servers update the site will direct correctly to the www or non-www version as nominated in WordPress.

Related Articles

  • 404 pages on your WordPress site when migrating to SSL

    Sometimes users have the issue that all pages get 404 errors when Really Simple SSL is activated. The cause is different from user to user and from server to server....
  • Does Really Simple SSL make my site slower?

    When you’ve activated Really Simple SSL on your site, in some cases you might notice your site has become slower. I specifically built this plugin to be fast: most of the...
  • Remove .htaccess redirect on site lockout

    When you enable the setting “htaccess redirect” in settings/ssl/settings, Really Simple SSL detects the best redirect, then opens a testpage to verify this option won’t result in redirect loops. Even...
  • Disabling ssl for one page only

    The problem: services that don’t support SSL I think the best way to go is to get your entire site on SSL. But sometimes there are services that are not...

Leave a Comment