Mobile app version of vmapp.org
Login or Join
Kevin317

: Using Dynamic URLs with more than one Variable in a Sitemap? I have a site map with generated dynamic urls that I need included in the sitemap. However, the sitemap seems to be generating

@Kevin317

Posted in: #Dynamic #Sitemap #Url

I have a site map with generated dynamic urls that I need included in the sitemap. However, the sitemap seems to be generating an error on the & character, so that pages with more than one variable in the query string break the sitemap. How can I fix this? Here's an example:
example.com/index.php?action=view&id=10

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Kevin317

1 Comments

Sorted by latest first Latest Oldest Best

 

@Angela700

The ampersand (&) character is a reserved character in XML (sitemaps are XML) and must be replaced with an XML entity that represents it. In this case that would be & (all entities start with ampersand which is why it is reserved).

When the XML is parsed the & entity in your url will be translated into plain &.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme