Hi to all,
Is it possible to use several domains with identical content linked to the main domain?
For example, I have
and
site.net
site.biz
How can I create identical sites to site.com
but they will have canonical on each page that will look on site.com
from site.net/page.html to site.com/page.html
Something like this should work:
<?php
use Kirby\Http\Uri;
$canonical = Uri::current(['scheme' => 'https', 'host' => 'site.com']);
?>
<link rel="canonical" href="<?= $canonical ?>" />
Excellent advice! Thanks, it works perfectly!