cyberpedz Posted January 28, 2019 Share Posted January 28, 2019 Does anyone know how I can rewrite the dynamic cart urls? I have searched all over and it seems this has been a request running for many years. It seems WHMCS is never going to add this feature so does anyone know how I would achieve this? Its affecting my SEO 0 Quote Link to comment Share on other sites More sharing options...
steven99 Posted January 31, 2019 Share Posted January 31, 2019 Do you mean to change the card template like you can with ?carttpl=carttemplate but via a SEO friendly url like /order/carttemplate/plan ? If so, a .htaccess rewrite should do the trick: RewriteRule ^order/(.*)/$ cart.php?carttpl=$1 [QSA,L] RewriteRule ^order/(.*)/(.*)$ cart.php?carttpl=$1&pid=$2 [QSA,L] Then just use https://whmcs.example.com/order/awesome/ and for plan use https://whmcs.example.com/order/cartname/planID. Note that you need the plan id and not the plan name. 0 Quote Link to comment Share on other sites More sharing options...
cyberpedz Posted February 1, 2019 Author Share Posted February 1, 2019 What i want to do is rewrite these urls: /cart.php?gid=4 to somthing like /cart/personal/ /cart.php?gid=2 to somthing like /cart/business/ /cart.php?gid=5 to somthing like /cart/premium/ 0 Quote Link to comment Share on other sites More sharing options...
steven99 Posted February 4, 2019 Share Posted February 4, 2019 RewriteRule ^cart/personal cart.php?gid=2 [QSA,L] That rule should do, just change the first part and the "gid" number to match. 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.