从一个域控制另一域
我被要求制作一个营销网站。提供的概念如下 -
将有一个名为 www.game.com 的父网站。它将有一个管理员。我的客户将创建 www.baseball.com、www.football。 com、www.golf.com 等。所有这些网站都会有自己的管理员。
现在假设一位名叫 Jack 的高尔夫球手来到 www.game.com 管理员并要求他进行注册。
我的客户说 www.game.com 管理员将能够在 www.golf.com 下注册该玩家,因为他是一名高尔夫球手,而 Jack 将获得像 www.golf.com/Jack
www.game.com/admin
www.baseball.com/ 这样的子域管理 www.football.com/admin www.golf.com/admin
这怎么可能?我应该如何处理?
i have been asked to make a marketing site.The concept provided is as follows-
There will be a parent site named www.game.com.It will have an admin.My client will create www.baseball.com,www.football.com,www.golf.com and so on.All these websites will have their own admin.
Now suppose a golf player named Jack comes to www.game.com admin and asks him to register himself.
My client is saying that www.game.com admin will be able to register that player under www.golf.com because he is a golf player and Jack will get a subdomain like www.golf.com/Jack
www.game.com/admin
www.baseball.com/admin www.football.com/admin www.golf.com/admin
How is it possible ? how should i approach?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您正在做的事情称为 URL 重写。查看这篇文章,了解其工作原理的基础知识。
http://en.wikipedia.org/wiki/Rewrite_engine
您还可以找到各种链接针对特定语言和平台的方法。
What you are looking at doing is called URL rewriting. Check out this article for the basics of how it works.
http://en.wikipedia.org/wiki/Rewrite_engine
You will also find links to various methods for specific languages and platforms.