URL Parameters in robots.txt

donaldbren

New member
I am looking to add a URL parameter "/?PageSpeed=noscript" as a disallow in robots.txt.

I have added and tested 3 different variations in Search Console robots.txt tester and all are coming back with 'Allowed'. What am i doing wrong? Which is the correct one?

Disallow: /*?PageSpeed=noscript
Disallow: /?PageSpeed=noscript
Disallow: *?PageSpeed=noscript
 
Back
Top