XML Sitemaps Generator

Author Topic: Ampersand in URL is being saved to sitemap as "&" resulting in bad URL  (Read 9077 times)

purchasing14

  • Registered Customer
  • Approved member
  • *
  • Posts: 2
Hi there.  We've been working to get XML Sitemaps automated and tuned so that we get the exact results that we're looking for; however, we're unable to determine why all URLs that include an "&" are being encoded as "&".

Here's a URL example that results in a bad request:
my.domain.com/OA_HTML/xxwv2ibeCCtpItmDspRte.jsp?section=10370&item=1597404

The correct URL is:
my.domain.com/OA_HTML/xxwv2ibeCCtpItmDspRte.jsp?section=10370&item=1597404


I'm interested in knowing if anyone else has ran into this issue and what was done to correct it.  Any help is much appreciated, thanks in advance!
« Last Edit: June 03, 2013, 11:04:34 PM by purchasing14 »

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10625
Hello,

all links in sitemap are "urlencoded" according with sitemaps protocol: www.sitemaps.org/protocol.html
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

purchasing14

  • Registered Customer
  • Approved member
  • *
  • Posts: 2
Per w3c, URL encoding for "&" is "%26", and in this case it's coding it like you would to put an & symbol into HTML code, which is incorrect for this use because it isn't usable by the browser in this format.

Reference: w3schools.com/tags/ref_urlencode.asp
« Last Edit: June 05, 2013, 03:26:55 PM by purchasing14 »

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10625
That document is for *HTML URL Encoding*, which doesn't apply to xml sitemap.
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

 

SMF 2.0.12 | SMF © 2014, Simple Machines
XHTML RSS WAP2