• Welcome to Sitemap Generator Forum.
 

No alternate language reference in sitemap.xml for mod_rewrite pages

Started by skyynet, August 23, 2020, 03:33:18 PM

Previous topic - Next topic

skyynet

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

Example for [ 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 [ 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.