开发者

Redirecting domain (not google apps) to appengine

开发者 https://www.devze.com 2022-12-27 03:35 出处:网络
I\'m building a application that supports different domains. A small CMS that supports different domains.

I'm building a application that supports different domains. A small CMS that supports different domains.

But what I can't figure out is how to redirect other domains that's outside google apps. I have a domain at google apps, that work's perfectly. When I create a cname that points at either my appid.appspot.com or www.appsdomain.com it just goes to google.com.

开发者_JS百科

What do I need to do so the other domains point to my appengine application.

..fredrik


You can't just use a cname because google needs to know how to direct the requests through their infrastructure to your app.

You should follow the instructions here: http://code.google.com/appengine/docs/domain.html to set up your name with their infrastructure so that requests to the cname get routed correctly.

Update: You do not have to move your domain to google, only inform them of the names you are going to set up cnames to point to them.


You can do that without a cname.

You need to set up a redirection mechanism of your second domain name. You can do that either by telling your registrar to redirect that url to your Google Apps url (that's how I do it with my registrar, name.com), or you could set up a small [php] script on a server you manage that would receive the queries on the second domain and issue a 301 redirect to your Google Apps domain.

EDIT: It all depends on what you want to do. If you want your app to live at both urls, then this solution will not work. I wrote this in the idea that you want the second url to redirect to your main url, if that's not what you want to do, then issuing redirects won't do the trick.

0

精彩评论

暂无评论...
验证码 换一张
取 消