Gravatar for

Question by anil, Feb 26, 2016 6:34 AM

if we define hostname wrongly under sites section of web.config.

Hi All,

Suppose as per host file entry hostname value in web.config is ABC. if i changed the hostname value to xyz. in this case which url coveo result link points. whether abc or xyz or content author url. please help me

1 Reply
Gravatar for

Answer by Sébastien Belzile, Feb 26, 2016 8:22 AM

Just on top of the node, you should see the Sitecore documentation:

hostName: The host name of the incoming url. May include wildcards (ex., *, *.net, pda., It's possible to set more than one mask by using '|' symbol as a separator (ex. pda.|

targetHostName: The host name to use when generating URLs to items within this site from the context of another site. If the targetHostName attribute is absent, Sitecore uses the value of the hostName attribute instead. Used only when the value of the Rendering.SiteResolving setting is true.

The URL of C4SC results will depend of the targetHostName, not hostName (as long as the ResolveResultClickableUriProcessor is declared in your configuration)

Ask a question