QUESTION = How to Create Endless Re-Directs To the Same Link

funkybunker

Supreme Member
Joined
May 14, 2013
Messages
1,264
Reaction score
1,812
Hi BHW,

Allow me to start by saying that it's been ages, and it's great to see our community growing!


So I'm looking to venture into a new Offline/Online affiliate system, and I plan to create a different link for each "location" that leads to the same website. I know it sounds strange, so I'll explain further:

The Goal
301 Redirect traffic from http://www.mywebsite.com/UNIQUE_CODE to http://www.differentwebsite.com
Repeat this process with http://www.mywebsite.com/UNIQUE_CODE2 etc
All Redirects must point to the same http://www.differentwebsite.com

So if I were to put the name of a different pizza parlor at the end of my url (http://www.mywebsite.com/MikesPizza, http://www.mywebsite.com/JacksPizza) they all redirect to the same affiliate website.

I've never played with 301 Redirects, how can I achieve this?

Thanks everybody!
 
Ask your registrar for assistance with this. I did a 301 redirect for domain to an affiliate link and it worked just fine -- it took a few hours to update the DNS.
 
It depends on how you're hosting your website (what language the site/app is created in). But it's trivial to make a script to do redirects like this.
 
Not sure about using 301s but the first idea that comes to mind is:

Set up a simple redirect on the index of mywebsite.com to differentwebsite.com

Next format your links like: mywebsite.com/?mikespizza

The "?" bit is an old way of passing variables to php in the page. Since all you have on page is a simple redirect, the variable will be ignored and mywebsite.com will redirect to differentwebsite.com

Hope this helps
 
It depends on how you're hosting your website (what language the site/app is created in). But it's trivial to make a script to do redirects like this.
I was thinking the same thing. Why not generate a page with a php script and even toss in a title and some text in case an SE accidentally picks it up.

Rick
 
Back
Top