My created sitemap.xml includes alternate language references for my normal PHP pages.

Example for skyynet.de/index.php

Code: [ External links are visible to forum administrators only ]
<link rel="alternate" hreflang="en" href="https://www.skyynet.de/e-index.php" />
<link rel="alternate" hreflang="fr" href="https://www.skyynet.de/f-index.php" />

I also have pages which are created from a database which have a different url, achieved by mod_rewrite.
They are also included in the sitemap but don't feature the alternate language references there but in the actual pages.

Example for skyynet.de/en_db/apple/iphone_x

Code: [ External links are visible to forum administrators only ]
<link rel="alternate" hreflang="de" href="https://www.skyynet.de/db/Apple/iPhone_X" />
<link rel="alternate" hreflang="fr" href="https://www.skyynet.de/fr_db/Apple/iPhone_X" />

Any idea, why the alternate language references are not in the created pages? Anything I have to change in my config? The "detect hreflang attribute" option on the advanced tab is enabled and works fine for normal pages.
Re: No alternate language reference in sitemap.xml for mod_rewrite pages
« Reply #1 on: August 23, 2020, 05:05:24 PM »
Hello,

please let me know your generator URL/login in private message to check this.