Sourav
Sourav

Reputation: 17530

Valid URL in sitemap

Which of this is a valid URL/URI in a sitemap ?

www.site.com?id=5&token=10
www.site.com?id=5&token=10

Upvotes: 1

Views: 286

Answers (2)

Roman S
Roman S

Reputation: 162

You should use

& 

instead &.

Here is the part of official doc:

Entity escaping

Your Sitemap file must be UTF-8 encoded (you can generally do this when you save the file).

As with all XML files, any data values (including URLs) must use entity escape codes for the

characters listed in the table below.

    Character    Escape Code
    Ampersand    &  &
    Single Quote     '  '
    Double Quote     "  "
    Greater Than     >  >
    Less Than    <  &lt;

Upvotes: 1

d1rk
d1rk

Reputation: 1956

If it is a normal Link href="www.site.com?id=5&token=10" is correct.

Upvotes: 1

Related Questions