GetSimple Support Forum
www version vs non www version of site - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: www version vs non www version of site (/showthread.php?tid=7406)



www version vs non www version of site - projwest - 2015-07-06

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.


RE: www version vs non www version of site - HelgeSverre - 2015-07-06

(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]



RE: www version vs non www version of site - shawn_a - 2015-07-06

Yeah not really a GS issue, www is a subdomain. You should be redirecting it.
Now if you have www in your siteurl in settings, and are having an issue with some links not reflecting that, then there might be a bug somewhere in GS.