GetSimple Support Forum

Full Version: www version vs non www version of site
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
(2015-07-06, 16:10:37)projwest Wrote: [ rel="nofollow" -> ]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]
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.