diff --git a/boot.php b/boot.php
index 0dd1d3823..1ef80e515 100644
--- a/boot.php
+++ b/boot.php
@@ -290,7 +290,7 @@ class App {
if($this->cmd === '.well-known/host-meta') {
require_once('include/hostxrd.php');
- hostxrd($this->hostname);
+ hostxrd($this->get_baseurl());
// NOTREACHED
}
diff --git a/include/hostxrd.php b/include/hostxrd.php
index 9161b265c..987175c33 100644
--- a/include/hostxrd.php
+++ b/include/hostxrd.php
@@ -1,10 +1,10 @@
$domain
-
-
-
+
+
+
+ href="$domain/oexchange/xrd" />