Solved

How is this done?

Posted on 2015-02-24
4
91 Views
Last Modified: 2015-02-24
I've found a few sites out there like this. They aren't affiliated with us, but use the image from our server.
babbletags418.wordpress.com/2015/02/23/one-serving-meals-bundle-2-2-servings/

If you click on Buy Now, etc, and you're in the US or Canada, it takes you to the MagicKitchen.com site. If you're in Mexico (and presumably other places in the world), it takes you to  Amazon.  How on earth do they do it? Thanks.
0
Comment
Question by:mel200
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 40628909
If it is on your site then it is on Google, so they probably just downloaded it.  Tey are getting it directly off you server then they are simply using a regular http call.

Cd&
0
 

Author Comment

by:mel200
ID: 40628926
Yep, that much I knew. I meant how is it that they are sending some countries to http://magickitchen.com, and others go to Amazon? I go to Amazon when I click on their links, so do others living in Mexico. Canadians and Americans go to MagicKitchen.com.

I don't see amazon in their code, wondering how they do that?
0
 
LVL 17

Accepted Solution

by:
Lucas Bishop earned 500 total points
ID: 40629085
First, to do the redirection, they're either checking the browser language or ip address and redirecting to a specific location.

They likely redirect to magickitchen.com for the countries they can accept payment for.
They likely redirect to amazon.com for the countries they can't accept payment for and instead collect an affiliate commission if amazon converts the sale.
0
 

Author Closing Comment

by:mel200
ID: 40629092
Great answer, solves my consternation, thanks!
0

Featured Post

Learn by Doing. Anytime. Anywhere.

Do you like to learn by doing?
Our labs and exercises give you the chance to do just that: Learn by performing actions on real environments.

Hands-on, scenario-based labs give you experience on real environments provided by us so you don't have to worry about breaking anything.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question