English 中文(简体)
如何建造《欧洲公路》等 Ichoice.do Main name.com,
原标题:how to construct URL like these mychoice.domainname.com,

i 有必要与上述内容相呼应。

for eg : My Domain name : www.domainname.com
expecting Output

作为候选人,必须将其改为candidate.domainname.com

作为招募者,必须将其改为recrutier.domainname.com

can any help, i m new to Construction user friendly url.even small your suggestion, it ll also help me. ,so don t hesitate to give suggestions.

问题回答

This is not friendly url. This is sub domain system that manages at domain control panel.

您可以检查<代码>_SERVER[ HTTP_HOST],并据此确定违约模块:

protected function _initModules()
{
    $frontController = Zend_Controller_Front::getInstance();
    $frontController->addModuleDirectory(APPLICATION_PATH .  /modules );
    $frontController->setParam( prefixDefaultModule , true);

    $systemDomainName =  domainname.com ;

    // our api is located at api.domainname.com
    if ( ($_SERVER[ HTTP_HOST ] ==  api.  . $systemDomainName)) {
        $frontController->setDefaultModule( api );

        $restRoute = new Zend_Rest_Route($frontController);
        $frontController->getRouter()->addRoute( default , $restRoute);
     } else if ( ($_SERVER[ HTTP_HOST ] ==  candidate.  . $systemDomainName)) {
         $frontController->setDefaultModule( candidate );
     }

}

You need to login to your domain control tool, usually provided by your hosting company, and add a CNAME record, also known as an alias, for your domain that points back to your "A" record in your DNS configuration, usually this also points to "www".

以GoDaddy为例,国家空间活动委员会的记录将显示“@”,这意味着它提到了你的记录。





相关问题
URL rewrite in IIS6 - Third party tools

I have collected the following api/sdk/whatever which provide modules for doing url rewriting in IIS 5/6/7. Some are free-open source and some require $. I haven t tried any of them. I would like to ...

Rewrite spring-security redirect URLs

I m trying to get Tuckey UrlRewriteFilter to tidy up URLs for my webapp. One problem I ve got is that when spring-security notices that an anonymous user is trying to access a protected resource it ...

ASP.NET Friendly URLs

In my research, I found 2 ways to do them. Both required modifications to the Application_BeginRequest procedure in the Global.Asax, where you would run your code to do the actual URL mapping (mine ...

Could I get by HttpModule the URL that contains * before?

My web-site is working under ASP.NET 3.5, IIS7, Integrated pipiline mode. My HttpModule is getting request to all resources, including URLs like this: http://my-site.com/address And I would support *...

Domains & Foreward Slash

This is rather difficult to explain so please bear with me. We will be hosting 4 websites on our server and the plan is to have each site sit under its own domain: site-a.com site-b.com sub1.site-b....

URL Mod-Rewrite

I currently have a working URL: http://example.com/security-services.php?service=fixed-camera-surveillance and then I have PHP say, $_REQUEST[ service ] to do some stuff... But I d like to ...

热门标签