简体   繁体   中英

Are PHP $_GET methods indexed by search engines?

If you use a PHP $_GET method, and it saves the string of data to the url box, such as:

/net/gallry/aidangig/post.php?title=This+funny+Doge&author=%40aidangig&media_post=Lol+feel+free+to+comment.<img+src%3D"%2Fgallry%2Femojis%2F1f602.svg"+height%3D"16"+width%3D"16"%2F>%0D%0A<img+src%3D"http%3A%2F%2Fi.imgur.com%2FANQFVFm.jpg"%2F>%0D%0A

Will this be saved, and indexed by Google as it is here, or would Google just index it as:

/net/gallry/aidangig/post.php?

Yes, Google can (and will) index $_GET parameters.

If you manage this site, and you do not wish Google to do so, you can either use canonical links , or you can tell Google which parameters it should ignore within Google Webmaster Tools . Note that the second option will not prevent other search engines from indexing these URLs.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM