celwell
celwell

Reputation: 1662

Does it matter if I have a "&" right after "?" in my url?

Does it matter if I have a "&" right after "?" in my url? For example: http://www.blah.com/blah.php?&key=23

Would any browser get stumped by that? Or, will every browser treat it as: http://www.blah.com/blah.php?key=23

Thanks.

Upvotes: 2

Views: 477

Answers (2)

user703016
user703016

Reputation: 37945

It doesn't matter at all. You can even add as many & as you want, it won't affect the meaning of the URL as the server will remove unused ones and treats ? semantically as a &.

Upvotes: 1

tofutim
tofutim

Reputation: 23374

It seems to work on FF4, IE9 and Chrome, but why tempt fate?

Upvotes: 0

Related Questions