XML Sitemaps Generator

Author Topic: ampersand error & displaying as & in urllist  (Read 15947 times)

info809

  • Registered Customer
  • Approved member
  • *
  • Posts: 1
ampersand error & displaying as & in urllist
« on: February 25, 2009, 11:13:19 AM »
Hi ,

i am having a problem with "&" in urls when it is producing the "urllist.txt"

example

this url:  15&products_id=243

is being displayed like this: 15&products_id=243

as you can see the error is that all "&" are being displayed as "&"

hope you can help .

thanks


XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10624
Re: ampersand error & displaying as & in urllist
« Reply #1 on: February 25, 2009, 03:15:34 PM »
Hello,

according to standards, the ampersand character in URLs is replaced with &, so that is correct. The same in html links, you should write:
<a href="page.php?a=1&amp;b=2">
and not:
<a href="page.php?a=1&b=2">
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