Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 05-17-2017 08:55:40

sdn
Member
From: UK
Registered: 05-29-2007
Posts: 882

GWT Reporting Duplicate Content

GWT has been reporting duplicate content for a while now. Not many pages reported but here is an example:

/Store
/index.php?app=ecom&ns=prodall&ref=&count=18&offset=486
/index.php?app=ecom&ns=prodall&ref=&count=18&offset=504
/index.php?app=ecom&ns=prodnew&ref=&prodsort=DEFAULT

I notice that the duplicate items are are old prodall and prodnew pages that appear under index.php with the same content as the Splash page. The URL parameters in GWT are same as CCP8. Any ideas how to rectify?

Last edited by sdn (05-17-2017 08:56:39)


Simon

Offline

 

#2 05-18-2017 09:33:44

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: GWT Reporting Duplicate Content

Those URLs don't exist any more.  It's basically targeting the splash page because they're coming in as index.php requests with invalid CGI parameters.  But they're not SEO URLs which we'd redirect.  I'd redirect all of them in your .htaccess using rules like this above your K9 rewrite rules:

Code:

RewriteRule /Store / [L,R=301]

RewriteCond %{QUERY_STRING} prodall
RewriteRule ^(.*) / [L,R=301]

RewriteCond %{QUERY_STRING} prodnew
RewriteRule ^(.*) / [L,R=301]

The above is untested, let me know if you have issues with it.


Nick Hendler

Offline

 

#3 05-23-2017 05:54:02

sdn
Member
From: UK
Registered: 05-29-2007
Posts: 882

Re: GWT Reporting Duplicate Content

No it does not work and caused the browser to issue an error message. I did a quick search and found some similar code with ? after the / and that does at least not cause the error message but still not sure if it actually solves the problem. Could it be right?

RewriteRule /Store / [L,R=301]

RewriteCond %{QUERY_STRING} prodall
RewriteRule ^(.*) /? [L,R=301]

RewriteCond %{QUERY_STRING} prodnew
RewriteRule ^(.*) /? [L,R=301]


Simon

Offline

 

#4 05-23-2017 07:08:21

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: GWT Reporting Duplicate Content

Try (UPDATED 2017-05-24):

RewriteRule /Store / [L,R=301]

RewriteCond %{QUERY_STRING} prodall
RewriteRule ^$ /? [L,R=301]

RewriteCond %{QUERY_STRING} prodnew
RewriteRule ^$ /? [L,R=301]


Nick Hendler

Offline

 

#5 05-23-2017 10:14:45

sdn
Member
From: UK
Registered: 05-29-2007
Posts: 882

Re: GWT Reporting Duplicate Content

That also does not work. Chrome say "redirected you too many times. Try clearing your cookies. ERR_TOO_MANY_REDIRECTS"

So cleared the cookie - same result.

Changing to RewriteRule ^/(.*) / [L,R=301] or RewriteRule ^/(.*)$ / [L,R=301] allows the page to load but it still has "/?app=ecom&ns=prodnew&ref=&prodsort=DEFAULT" in the url.

I have removed almost all of the other rewrites from htaccess to perform these tests.

While on the subject of other rewrites and duplicate content, do we need to add a redirect that forces the site to only be served as www. or is K9 taking care of that?

Last edited by sdn (05-23-2017 10:17:14)


Simon

Offline

 

#6 05-24-2017 08:07:37

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: GWT Reporting Duplicate Content

Try the newly updated rules in post 4.


Nick Hendler

Offline

 

Board footer