homepage Welcome to WebmasterWorld Guest from 54.161.166.171
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Google / Google SEO News and Discussion
Forum Library, Charter, Moderators: Robert Charlton & aakk9999 & brotherhood of lan & goodroi

Google SEO News and Discussion Forum

    
Using ampersand in querystrings
Chris_H




msg:3035201
 9:22 am on Aug 5, 2006 (gmt 0)

Stupidly, I've been using the character '&' in my querystrings, e.g.

www.mysite.com?widget=blue&type=1

HTML validation fails as I am not using '&' instead of '&', and I am keen to correct this.

However, if I go ahead and fix these querystrings would it cause any problems with currently indexed pages? Would I suffer duplicate content due to having to differing URL's in the index:

www.mysite.com?widget=blue&type=1

and

www.mysite.com?widget=blue&type=1

Thanks, in advance.

 

tedster




msg:3036327
 4:57 pm on Aug 6, 2006 (gmt 0)

I just did two google searches: allinurl:& and allinurl:&

The first search returns zero results. The second search returns 672 million results, and every one of them has & in the uri, despite the fact that an explicit search generates zero results. So it looks to me that Google is right on top of this, and the two versions of the uri are clearly not seen as duplicates. Rather, everything seems to be mapped to the & version.

Chris_H




msg:3036373
 5:53 pm on Aug 6, 2006 (gmt 0)

Thanks Tedster. This gives me the confidence to amend the URLs and go and get properly validated.

Chris

jomaxx




msg:3036451
 6:53 pm on Aug 6, 2006 (gmt 0)

That might be an artifact of the allinurl: function. I agree that "&" and "&ampl:" are normally interchangeable, but they are distinct URLs that could theoretically produce different results. Like "www" and non-"www" domain addressing, for example.

Chris_H




msg:3036523
 8:50 pm on Aug 6, 2006 (gmt 0)

I must admit I haven't experienced any problems with the XML sitemap, which forces you to use & even though the website in question (until today) used '&' in the querystring.

Naturally I was nervous when going ahead and changing all the links to & today.

I can only cross my fingers and hope.

Does anyone else have any experience or thoughts about this?

g1smd




msg:3036580
 10:25 pm on Aug 6, 2006 (gmt 0)

Links with & are fine on a browser for sure. The browser knows to request a URL with just an & in it from the webserver, and not to try to find a character to draw on the screen called &productid; or &pagenumber; or something.

Look in your raw log files and see that even though the link has & in it, that the browser requests a URL as if it just has a & when the request hits the server.

Chris_H




msg:3036945
 7:24 am on Aug 7, 2006 (gmt 0)

Good thinking. I'll go and have a look at my logs to confirm this.

Chris_H




msg:3036947
 7:27 am on Aug 7, 2006 (gmt 0)

You're absolutely right. My log files confirm this. I can now rest easy.

Thanks to everyone for your help.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Google / Google SEO News and Discussion
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved