Google telling me Avoid langing page redirects they are there for a reason

360 views
Skip to first unread message

Rob P

unread,
Nov 8, 2017, 7:02:08 AM11/8/17
to pagespeed-insights-discuss
Ran a Google [age speed insight on a site. we have (settings as recommended by Hostco) a redirect from http://www.mysite.com TO https://www.mysite.com

Why would Google take the hump with this, it is valid to redirect the non http to the https version of the domain.



Secondly, this has come out  avoid landing page redirects for for the following chain of redirected URLs.

http://www.mysite.com?wc-ajax=get_refreshed_fragments the site is using Woocommerce but not the cart funtionality, just as a catalogue.

I've seen mention of dequeueing cart fragments, anyone else seen this?
Thhanks. R.

Carlos Lizaga

unread,
Nov 8, 2017, 8:14:48 AM11/8/17
to pagespeed-insights-discuss
Hey Rob,

Without a real URI we cannot say really much.

Best,
Carlos.

Rob P

unread,
Nov 11, 2017, 12:36:39 PM11/11/17
to pagespeed-insights-discuss
Hi Carlos I would like to avoid posting the live URL to avoid skewing stats. (i.e. me having to filter them out)

Alll page speed tool says is...

Your page has 2 redirects. Redirects introduce additional delays before the page can be loaded.
Avoid llanding page redirects for the following chain of redirected URLs.
All we're doing is redirecting the non http to the https version. Is this an issue or can it be ignored?

Thanks.

Rob P

unread,
Nov 15, 2017, 11:08:19 AM11/15/17
to pagespeed-insights-discuss
Fixed this.
Due to Wordpress Woocommerce shopping cart needing deenqueueing. No redirects now!


On Wednesday, 8 November 2017 12:02:08 UTC, Rob P wrote:

acco...@akikodesign.com

unread,
Nov 16, 2017, 9:00:57 AM11/16/17
to pagespeed-insights-discuss
Hi Rob,

How did you fix this? I'm experiencing the same issue with one of our sites.

Kind regards,

Colin

Rob P

unread,
Nov 17, 2017, 4:19:34 AM11/17/17
to pagespeed-insights-discuss
Hi Colin,

Hi Colin, I'lll post the fix later today. We're in the same business as you, Derby way.

I did a couple of things that seem to have worked in that Google is not reporting the error and one of the tools we use is no longer rasing the redirect error either.

Regards, Rob.

Friday17/11/17

On Wednesday, 8 November 2017 12:02:08 UTC, Rob P wrote:

Rob P

unread,
Nov 17, 2017, 7:25:59 AM11/17/17
to pagespeed-insights-discuss
We used 2 methods to remove the redirect errorsm raised by Googlle tools.

I used the De enqueue method on our WP site that uses Woocommeerce but NOT as a sale site, catalogue only.

// Dequeue to prevent cart fragments error
add_action( 'wp_print_scripts', 'de_script', 100 );

function de_script() {
    wp_dequeue_script( 'wc-cart-fragments' );

    return true;
}

The above code added to child theme functions.php.

We also addedto robots.txt, this,

Disallow  */wp-json/oembed/1.0/

Your situation may not be the same as ours but one, or both of these measures succeeded in removing the errors from Google page speed test.

Regards, Rob.


On Wednesday, 8 November 2017 12:02:08 UTC, Rob P wrote:
Reply all
Reply to author
Forward
0 new messages