Different site when www is not included at the address

Posted in: Newspaper
Post count: 24

Hello,

I experience a strange problem. I have set up your template and all worked as expected until I noticed a strange issue. When I enter http://www.pressonline.gr at the address bar of my browser (internet explorer) the sites displays its latest version (latest posts). When I enter pressonline.gr (ommiting the www) I see a previous version of my site that requires a refresh.

Any help would be greatly appreciated.

Thank you in advance for your time and help.

Best Regards,
Vasileios

Post count: 6

I have the same issue of site looking different when I leave the www out.

Post count: 22421

Hello,
You should only have one version of your site. This has to be set from wordpress. Please follow this topic to learn more about this: https://forum.tagdiv.com/topic/there-is-difference-in-ui-with-and-without-www/
(not theme related)
Thank you!

Post count: 24

Hello Bogdan!

Thank you for your immediate response.

However, I contacted both my hosting provider and my domain registrar and both assured me that everything is ok regarding the DNS settings and the A, CNAME and MX records.

A
localhost 127.0.0.1 14400
autoconfig 50.87.65.224 14400
autodiscover 50.87.65.224 14400
mail 50.87.65.224 14400

CNAME
www pressonline.gr 14400
ftp pressonline.gr 14400
imap mail.pressonline.gr 14400
pop mail.pressonline.gr 14400
smtp mail.pressonline.gr 14400

They pointed me back to you by saying that there might be a problem with the wordpress theme or a caching plugin of the wordpress installation. I have not installed any caching plugins just the jetpack as you suggest at your documentation.

Any help would be greatly appreciated, since I have not used any additional plugins except for those you recommend.

Thank you once more for you time and help.

Best regards,
Vasileios

Post count: 22421

Hi,
Please deactivate all plugins including jetpack, as not all jetpack options are tested. Jetpack is a monster of a plugin that has lots and lots of features. We have not tested all of them and there are some that do not (mobile theme and photon) There could be more as jetpack is ever expanding/. Test this without plugins and see the results. If the problem is still there, please also test this on a WP default theme like twentysixteen to see if the issue is only with our theme installed.
Let us know how it goes.
Thank you!

Post count: 6

I have managed to fix it for my site.

I forced non use of the www in the htaccess file as a workaround by adding the following.

#Force non-www:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.example\.com [NC]
RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]

Hope this helps

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.