• Resolved madcowz

    (@madcowz)


    Hi, it’s me again.

    I am in the process of testing my checkout system and have come across a problem with my rewrite rules and the final confirmation page before going to Paypal.

    So far I have all the Rewrite rules working until I get to the confirmation screen before going to Paypal and I get a 404.

    The main rule I am using is:

    RewriteRule /shopping-cart/checkout/ /\?page_id=739 [I,L]

    but when I try to go to this link:

    http://landroveroneten.com/shopping-cart/checkout/?action=redirect

    it gives me a 404

    If I switch off permalinks in WP and test the system, the page that in question has the following url:

    http://landroveroneten.com?page_id=739&action=redirect

    I am confused as it has & in the raw url but a ? in the attempted Rewrite.

    I have tried all manner of Rewrite rules but know very little about what I am doing here and getting in a muddle.

    Is it possible to skip the last stage and go straight to Paypal as the very last page just sits at “Please wait, your order is being processed…” and I have to manually click the Proceed to Paypal button anyway.

    thanks

    And I will be using the Paypal button on your site soon to chuck some cash your way.

Viewing 12 replies - 1 through 12 (of 12 total)
  • To answer the last bit first – no – when in live mode it does automatically redirects, in test it doesn’t to allow you to style it.

    Why are you messing about with rewrite rules? the default WP htaccess works fine. I had some rewrite rules in place that affected things as well, and I couldn’t figure it out – it was only when putting things back to the default setup that it worked.

    Thread Starter madcowz

    (@madcowz)

    I couldn’t get WP htaccess to work correctly on my reseller hosting package (Win 2003) so I had to get iaspi installed instead.

    I went through every step on this page:

    http://codex.wordpress.org/Using_Permalinks

    and then spent days trawling through Google to try and solve my problem and in the end had to use iaspi.

    At present, every post I write is ok and rewritten automatically, but pages I have to manually add a rule. Very tedious.

    Maybe it is time to revisit the problem and have another bash at it.

    A job for the w/end perhaps.

    thanks.

    having to add things manually means something is wrong somewhere, so yes time for a revisit. Sadly I don’t know enough about it to be able to help.

    Thread Starter madcowz

    (@madcowz)

    Elfin,

    funny how revisiting a problem can sometimes solve it.

    I went through the solutions on the WordPress codex page step by step and by using custom 404 pages with the following code:

    <?php
    $qs = $_SERVER['QUERY_STRING'];
    $pos = strrpos($qs, '://');
    $pos = strpos($qs, '/', $pos + 4);
    $_SERVER['REQUEST_URI'] = substr($qs, $pos);
    $_SERVER['PATH_INFO'] = $_SERVER['REQUEST_URI'];
    include('index.php');
    ?>

    seem to (fingers crossed) have permalinks working a treat. I can now add a page and it works automatically which is great. Yippee!

    The bad news is… that when I try to add a product to my basket, it sends me to: /shopping-cart/ and says: “Your shopping cart is currently empty.”

    The url is: http://landroveroneten.com/land-rover-one-ten-online-shop/

    thanks.

    Thread Starter madcowz

    (@madcowz)

    NOTE: I have disabled all the other plugins and retested (as per a previous thread). Still have the same issue.

    If items aren’t added to the cart it is a php session issue.

    Thread Starter madcowz

    (@madcowz)

    It is the 404 redirect that is doing it.

    If I switch off permalinks and just use ?page_id= then it works. If I then re-enable permalinks and try it fails.

    The 404 redirect must be killing the php session info which means that 404 redireect is not the magic bullet to my redirect problems and I must continue to find a solution that works.

    damn.

    upgrade eShop, that might help as I renamed a variable that may conflict. (it might not make a difference though)

    Thread Starter madcowz

    (@madcowz)

    Hi,

    I have downloaded and installed from http://wordpress.org/extend/plugins/eshop/ and it still doesn’t add items to the cart.

    BTW, the version number is still the same, 3.3.6, is this correct.

    Thanks for trying though, appreciated.

    yes it is, ahh maybe the update I was thinking off isn’t released yet – oops.

    It will be released next week (new merchant gateways), so definitely update then and see if it makes a difference.

    Thread Starter madcowz

    (@madcowz)

    Ok, thanks.

    Meanwhile I have changed my permalinks from:

    /%year%/%monthnum%/%postname%/

    which doesn’t work.

    To the standard WordPress:

    /index.php/%year%/%monthnum%/%postname%/

    which does!!

    so it seems that having the /index.php in there sorts out all my worries and I now have permalinks working, eShop working and slightly fewer grey hairs.

    I will continue to test and just put up with the index.php rather than spend hours and hours trying to sort this.

    Thanks again for your help. Appreciated, and I will test the new version when it is released next week and report back.

    Hedley

    yay – glad you found a solution.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘ISAPI_Rewrite & eShop Checkout – 404’ is closed to new replies.