Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Keith P. Graham

    (@kpgraham)

    Permalink finder doesn’t work well with links like that. The “?” information is lost. It only works with permalinks. The permalink for https://slobots.com/?wpsc-product=brncl-bll-v-1 is https://slobots.com so the plugin thinks that it is working.

    Keith

    Thread Starter wallaby

    (@wallaby)

    so there is no way in the plugin to tell just to disregard the “?”

    on further experimentation, if i use everything but the “?”, the plugin finds the proper redirecton

    for instance a link like this redirects correctly: https://slobots.com/wpsc-product=brncl-bll-v-1

    Plugin Author Keith P. Graham

    (@kpgraham)

    I never saw this kind of problem before. It only is a problem if you go from wp-commerce to woocommerce.

    Unfortunately, the plugin only kicks in on a page not found. Since the page is found, it never knows that you are not finding the right page.

    You would need a special plugin that looks for the wpso-product= string and redirect after that.

    try saving this in a file called fix-woo.php and copying it to your plugins folder

    <?php
    /*
    Plugin Name: Fix-Woo
    Description: Fixes wp-commerce links
    Version: 1.0
    Author: Anonymous
    */
    add_action("init","fix_woo");
    function fix_woo() {
    $sname=$_SERVER["REQUEST_URI"];
    if (strpos($sname,'wpso-product=')!==false) {
    	$pl=substr($sname,strpos($sname,'wpso-product=')+13);
        wp_redirect(site_url()+"/"+$pl,301);
    	exit;
    }
    }
    ?>

    Then see what happens after you activate it.

    Thread Starter wallaby

    (@wallaby)

    thanks Keith

    i look into it. i appreciate your help.

    I have a problem with a site https://www.wired-stones.com built with lots of products and categories. I am not a programer but have learned I need to change the permalinks, I have changed and tried the yoast redirect (which says woocomerce will do that for you). Still all my pages except the products show up. One page JEWELRY has all the products but the rest just have a blank page with the menue name…Can you help?….thanks Lou

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘not redirecting WP-ecommerce links’ is closed to new replies.