• I’m trying to set-up my site so that it has www. in the front so that it can work correctly with Cloudflare. I went into domains on Plesk (my hosting platform), then “hosting settings”, and then changed the preferred options to www. I also changed my siteurl and home in WordPress to https://www.example.org/ but now I can’t reach the WP dashboard. Any solution for this? I know changing the siteurl and home can cause the dashboard to stop working, but I thought changing the preferred domain in Plesk would fix the problem. Any ideas? Thanks.

Viewing 1 replies (of 1 total)
  • add this code to your htaccess file.

    #Force www:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^example.com [NC]
    RewriteRule ^(.*)$ https://www.example.com/$1 [L,R=301,NC]
Viewing 1 replies (of 1 total)
  • The topic ‘Changing site to www.’ is closed to new replies.