5

或者可以做到吗?

例如,我想帮助几个朋友建立他们的购物车网站。他们已经购买了他们的网站域名。但是我想在www.mywebsite.com支付一个谷歌应用引擎应用程序,并且我想将他们的域“转发”到www.mywebsite.com/friend1www.mywebsite.com/friend2。通过这种方式,我希望他们的客户看到他们的网站,可能是http://www.friend1.com,但他们实际上是由一个单一的应用程序引擎应用程序提供服务的。

在我的应用程序中,我知道如何分析路径,以便我可以去数据存储区提供不同的页面,html。所以问题是如何或可以从不同的域转发一个谷歌应用程序引擎。谢谢!

4

1 回答 1

1

I'm not quite sure what is your exact meaning of "forward", but I try to answer for different situations.

  1. If you want the browser to keep displaying www.friend1.com all the way without ever showing www.mywebsite.com, you should have friend1.com setup as a Google App account, and add their domain into your application (just like you did for your own domain). This way, all traffic to www.friend1.com (or what ever subdomain they pick) goes to your appengine app. And your App should detect the domain of the http request and response accordingly.

  2. If you just want a "redirect"... that means, user goes to www.friend1.com will have their browser auto goes to www.mywebsite.com/friend1 and displaying it in the URL bar , well, just setup one index.html page in www.friend1.com and add meta refresh header in the file. Or use any server side redirect method.

于 2013-05-19T13:38:49.603 回答