Forum
bad link to subdomain in sitemap.xml
One of the links in my main navigation goes to a subdomain not part of perch - app.website.com.
In my sitemap xml it's coming out as:
https://www.website.comhttps://app.website.com
That's because I have this set up in the sitemap.html template:
<loc>https://www.website.com<perch:pages id="pagePath" /></loc>
Do I need to edit my sitemap.xml file (below) so all items display the correct url? Thank you.
<?php
header('Content-type: application/xml');
include('admin/runtime.php');
perch_pages_navigation(array(
'template'=>'sitemap.html',
'flat'=>true,
'hide-extensions' => true
));
?>
That isn't working I'm afraid - gives me the same output. I also tested swapping it round like so...
...And then the subdomain displays correctly but the standard links only include the filename and not the full URL.
In case it matters - I have perch itself installed on a subdomain - so all the main files at perch.website.com and the non perch stuff at app.website.com
That's surprising. The path does include
http
, yes?yes it does
Can you show me your diagnostics report?
Sure: