Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
www version vs non www version of site
#2
(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]
Web Developer
Plugins: GS Plugin Installer | Referrer Blocker | Password Protect
Reply


Messages In This Thread
RE: www version vs non www version of site - by HelgeSverre - 2015-07-06, 18:41:57



Users browsing this thread: 1 Guest(s)