2015-07-06, 18:41:57
(2015-07-06, 16:10:37)projwest Wrote: I am noticing through testing that sometimes my site has a www prefix and sometimes it does not.
Wordpress seems to handle this issue automatically.
Is there a similar workaround in GetSimple?
Not sure if this triggers a duplicate content penalty.
I have added these rules to my .htaccess file which will redirect all www. requests to the non-www equivilant.
Add them to the bottom of your htaccess fule and it should be good to go.
Code:
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]