Si Posted September 17, 2008 Share Posted September 17, 2008 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 0 Quote Link to comment Share on other sites More sharing options...
Si Posted September 17, 2008 Author Share Posted September 17, 2008 Incidentally, this is the redirect command I'm currently using: redirect /whmcs/order.php?step=2&pid=139 http://mydomain.com/whmcs/cart.php?a=add&pid=139 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted September 18, 2008 Share Posted September 18, 2008 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 <?phpheader("Location: cart.php?a=add&pid={$_GET['pid']}"); ?> 0 Quote Link to comment Share on other sites More sharing options...
Si Posted September 18, 2008 Author Share Posted September 18, 2008 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 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.