• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 273
  • Last Modified:

Htaccess help

We have an URL rotator script that grabs a random URL from a text file in the same directory. So when a visitor clicks on a link, they will get redirected to the randomly chosen URL.

Now we want to pass a variable along with the chosen URL, like this:

1) Visitor arrives at our site such as
http://www.oursite.com?variable=THEVALUE

2) Visitor clicks on a link on our page to
http://www.oursite.com/randomurlscript

3) Random link is chosen and visitor is redirected to:
http://externalwebsite.com?somevariable=THEVALUE


We'd like to do this as simply as possible, so if there is an .htaccess solution that might be best, or a session/cookie solution or else you can modify the randomurl script. We are also open to using a new randomurl script if that's easier. All it needs to do is allow us to enter multiple URLs to choose from, and then append the variable as previously described.
0
coolguy2009
Asked:
coolguy2009
1 Solution
 
PhatzerCommented:
Could you post the URL rotator script (I'm guessing it's PHP) and an example of the file of links?
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now