Jump to content

3.71 lost order form urls (and mod_rewrite)


Si

Recommended Posts

Hi,

With the upgrade to 3.71, some of the old product order form urls no longer work with the new system.

 

ie, this was an old product url:

http://mydomain.com/whmcs/order.php?step=2&pid=139

 

but now it no longer works and it defaults to the general cart.php page.

 

http://mydomain.com/whmcs/cart.php

 

Looking at the product now in Product setup, the direct product url now is:

 

http://mydomain.com/whmcs/cart.php?a=add&pid=139

 

So, simple, (or so I thought). Just create a simple mod_rewrite redirect

in my roots .htaccess to take anyone going to the old url and take them to the new one. Nope. Doesn't work. (Yet mod_rewrite/redirect is working on other pages on my site and server). It still defaults to the cart.php page.

 

Anyone know of a way around this?

 

Thanks

 

Si

Link to comment
Share on other sites

I see what you mean, I couldn't get the rewrite or redirect to work either.

 

Try this though

1. Rename your order.php to order.php.backup

2. Create a new txt file and name it order.php

3. Insert the below code in the new file

<?php

header("Location: cart.php?a=add&pid={$_GET['pid']}");

?>

Link to comment
Share on other sites

I see what you mean, I couldn't get the rewrite or redirect to work either.

 

Try this though

1. Rename your order.php to order.php.backup

2. Create a new txt file and name it order.php

3. Insert the below code in the new file

 

Excellent job. Thank you. This also needs to be an integral part of the new version. (IMHO)

 

Si

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated