<bdo id='ZArwz'></bdo><ul id='ZArwz'></ul>

  • <legend id='ZArwz'><style id='ZArwz'><dir id='ZArwz'><q id='ZArwz'></q></dir></style></legend><tfoot id='ZArwz'></tfoot>

    <i id='ZArwz'><tr id='ZArwz'><dt id='ZArwz'><q id='ZArwz'><span id='ZArwz'><b id='ZArwz'><form id='ZArwz'><ins id='ZArwz'></ins><ul id='ZArwz'></ul><sub id='ZArwz'></sub></form><legend id='ZArwz'></legend><bdo id='ZArwz'><pre id='ZArwz'><center id='ZArwz'></center></pre></bdo></b><th id='ZArwz'></th></span></q></dt></tr></i><div id='ZArwz'><tfoot id='ZArwz'></tfoot><dl id='ZArwz'><fieldset id='ZArwz'></fieldset></dl></div>

      1. <small id='ZArwz'></small><noframes id='ZArwz'>

        自定义域名映射到用户配置文件.

        Custom domain name mapping to user profile.(自定义域名映射到用户配置文件.)
        <legend id='lQrhb'><style id='lQrhb'><dir id='lQrhb'><q id='lQrhb'></q></dir></style></legend>

            <bdo id='lQrhb'></bdo><ul id='lQrhb'></ul>

                    <tbody id='lQrhb'></tbody>

                  <small id='lQrhb'></small><noframes id='lQrhb'>

                1. <i id='lQrhb'><tr id='lQrhb'><dt id='lQrhb'><q id='lQrhb'><span id='lQrhb'><b id='lQrhb'><form id='lQrhb'><ins id='lQrhb'></ins><ul id='lQrhb'></ul><sub id='lQrhb'></sub></form><legend id='lQrhb'></legend><bdo id='lQrhb'><pre id='lQrhb'><center id='lQrhb'></center></pre></bdo></b><th id='lQrhb'></th></span></q></dt></tr></i><div id='lQrhb'><tfoot id='lQrhb'></tfoot><dl id='lQrhb'><fieldset id='lQrhb'></fieldset></dl></div>

                  <tfoot id='lQrhb'></tfoot>
                2. 本文介绍了自定义域名映射到用户配置文件.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  目前,用户个人资料的格式为 website.com/username,这很好.但是,一些重度用户希望使用自定义域名.这类似于 Tumblr.用户被授予 username.tumblr.com 的子域,但允许他们使用映射到子域的外部域.我如何在 PHP 中解决这个问题?允许用户使用自定义域名?

                  Currently, user profiles are in the format of website.com/username which is fine. However, some heavier users wish to use custom domain names. This is similar to Tumblr. Users are given a subdomain of username.tumblr.com but they are allowed to use an external domain which gets mapped to the subdomain. How do I go about this in PHP? Allowing users to use custom domain names?

                  非常感谢您的帮助!

                  推荐答案

                  您可以使用以下示例:

                  基本 PHP:

                  如何让PHP创建子域自动为每个用户?

                  代码点火器:

                  http://net.tutsplus.com/教程/php/basecamp-style-subdomains-with-codeigniter/

                  Zend 框架:

                  Zend 框架中子域重定向的查询

                  $routeitem = new Zend_Controller_Router_Route_Regex('(.*)',
                                      array(1 => '', 'controller' => 'redir', 'action' => 'view'),
                                      array(1 => 'hash'),
                                      '%s'
                      );
                  

                  Drupal:

                  http://drupal.org/node/146344

                  这篇关于自定义域名映射到用户配置文件.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Appending GET parameters to URL from lt;formgt; action(将 GET 参数附加到来自 lt;formgt; 的 URL行动)
                  Forcing quot;Save Asquot; dialog via jQuery GET(强制“另存为通过 jQuery GET 对话框)
                  PHP - get certain word from string(PHP - 从字符串中获取某个单词)
                  How to debug a get request in php using curl(如何使用 curl 在 php 中调试 get 请求)
                  get a # from a url in php(从 php 中的 url 获取 #)
                  PHP - include() file not working when variables are put in url?(PHP - 将变量放入 url 时,include() 文件不起作用?)

                  <tfoot id='6DKDw'></tfoot>

                  <small id='6DKDw'></small><noframes id='6DKDw'>

                    <tbody id='6DKDw'></tbody>

                          <i id='6DKDw'><tr id='6DKDw'><dt id='6DKDw'><q id='6DKDw'><span id='6DKDw'><b id='6DKDw'><form id='6DKDw'><ins id='6DKDw'></ins><ul id='6DKDw'></ul><sub id='6DKDw'></sub></form><legend id='6DKDw'></legend><bdo id='6DKDw'><pre id='6DKDw'><center id='6DKDw'></center></pre></bdo></b><th id='6DKDw'></th></span></q></dt></tr></i><div id='6DKDw'><tfoot id='6DKDw'></tfoot><dl id='6DKDw'><fieldset id='6DKDw'></fieldset></dl></div>

                          <legend id='6DKDw'><style id='6DKDw'><dir id='6DKDw'><q id='6DKDw'></q></dir></style></legend>
                            <bdo id='6DKDw'></bdo><ul id='6DKDw'></ul>