Jump to content

htaccess redirect or a way to have automatic promo codes


caroldaley

Recommended Posts

I do web design and offer website packages with free hosting for the first 6 months or the first year (depending on which package is ordered). Based on what I've read on this message board, I've set up a bundle for the website package and hosting package. I then created promo codes to deduct the hosting off of the order.

 

What I would like to have is the URLs for the packages redirect to include the promo code.

 

For instance: /https://www.domain.com/XXX/cart.php?a=add&pid=2

 

redirect to: /https://www.domain.com/XXX/cart.php?a=a...de=PROMOMOCODE

 

I've tried to create the redirect in the htaccess, but it didn't work.

 

Does anyone know the correct way to do this or a better way? I would greatly appreciate any help!!!!

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