Can anyone help me? The site I am building is referenced everywhere by https://www.drshentaichiuk.co.uk However when you search for Dr Shen Tai Chi UK in Google it directs to https://drshentaichiuk.co.uk as a consequence the TotalCMS admin pages will not load.
My Sitemap.xml has www. everywhere but if I go to the Google Search Console and goto Links it shows the top links for https://drshentaichiuk.co.uk and says the pages are referenced by the index.php files on the site. However these index.php files have www.
Having both www and non-www being allowed isn’t good practice.
You can get dinged for duplicate content so your page’s SERP ranking can get hurt.
You see https://www.example.com and HTTP://example.com can be two totally different sites running on two different servers in different parts of the world. So example.com is the domain name and www is considered a subdomain of example.com.
First, you need to pick the survivor you want to keep. Looks like you registered one with www, but search engines are pointing to the other. If it’s not difficult to change the registration, I’d keep what search engines are using or you might take a hit, but it’s up to you. You might have advertised with one or the other.
Once you choose the one you want to keep www or non-www then you need to redirect to the one you want to keep.
If you are using Apache then you can have a look here.
OK, sorry. I figured it out and now my site is just https://drshentaichi.co.uk and the .htacccess redirect works fine. But when I try to log into a TotalCMS page to edit it I get a message saying "The Web Address configured in your RapidWeaver project (https://www.drshentaichi.co.uk/) does not match the published domain in your browser (drshentaichi.co.uk). "
In my general settings and publishing settings I have changed the url to non www.
I’m not sure what or why you are doing that. Without knowing why you’re doing this i can’t say for sure.
This will eliminate the www and force HTTPS:
# Force HTTPS and Remove WWW (this is a comment)
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [L,NE,R=301]
Total CMS licenses are always associated with the root domain. Therefore, it does not matter if you have www or not for the license.
However in order for the admin area to work properly, you need to make sure that the url setup in your project file matches the url you use in the browser.