DerekFL
09-02-06, 09:05 PM
I don't like the idea of having product numbers in my direct order links, so I changed it to reflect the product name. For example instead of my product link being order.php?step=2&pid=4, I have it set to be order.php?plan=product_name. This is actually easy to accomplish by using the following in a .htaccess file under your main WHMCS folder:
RewriteEngine on
Options +FollowSymlinks
RewriteBase /
RewriteCond %{QUERY_STRING} ^plan=product_name$
RewriteRule ^order.php order.php?step=2&pid=1 [L]
In the above example you'd obviously have to replace pid=1 with the id of your product. To create more than one product, simply add the RewriteCond and RewriteRule for each product.
RewriteEngine on
Options +FollowSymlinks
RewriteBase /
RewriteCond %{QUERY_STRING} ^plan=product_name$
RewriteRule ^order.php order.php?step=2&pid=1 [L]
In the above example you'd obviously have to replace pid=1 with the id of your product. To create more than one product, simply add the RewriteCond and RewriteRule for each product.