Thread:Project:Support desk/enabled canonical urls in 1.19/reply

Well first you're missing a / there, however $wgServer doesn't have anything to do with canonical urls.

To be honest, its a bit unclear what you mean by a "canonical" url. Do you mean &lt;link rel="canonical" ...&gt;. Those should automatically appear on pages if apropriate (For example if visiting a redirect page).

Do you mean having multiple urls your site can be accessed from (For example if using protocol relative urls), but having a specific canonical url for use in things like emails? See manual:$wgCanonicalServer.

Do you mean having people auto redirected to the canonical url for your website if they come from somewhere else? For that case probably best to use your underlying http server to do that.