• Resolved katekr

    (@katekr)


    Hi! can you help me? SEO report wants to change 302 redirect to 301

    How i can do this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Alessio Torrisi

    (@alessio91)

    Hi there,

    I added a filter in the plugin to satisfy your need.

    Please download the file here and replace it at following path:

    wp-content/plugins/yith-woocommerce-compare/includes/class.yith-woocompare-frontend.php

    Then add following code in the file functions.php of your theme.

    add_filter( 'yith_woocompare_redirect_status', 'yith_woocompare_set_redirect_status' );
    
    if( ! function_exists( 'yith_woocompare_set_redirect_status' ) ){
    	function yith_woocompare_set_redirect_status( $status ){
    		$status = 301;
    		return $status;
    	}
    }

    All changes applied to the file I shared with you will be included in the next official release too.

    Thread Starter katekr

    (@katekr)

    thank you!

    Plugin Support Alessio Torrisi

    (@alessio91)

    Hi there,

    I was happy to help you!

    If you enjoy with our product and our support don’t hesitate leave a review here, it will be much appreciated. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change link redirect 302 to 301’ is closed to new replies.