Can an “SEO Friendly” url contain a unique ID?

前端 未结 11 1338
傲寒
傲寒 2021-01-29 23:54

I\'d like to start using \"SEO Friendly Urls\" but the notion of generating and looking up large, unique text \"ids\" seems to be a significant performance challenge relative to

11条回答
  •  太阳男子
    2021-01-30 00:12

    Be careful with allowing a page to render using the same method as Stack overflow.

    http://stackoverflow.com/questions/820493/random-text-can-cause-problems

    Black hats can this to cause duplicate content penalty for long tail competitors (trust me).

    Here are two things you can do to protect yourself from this.

    • HTTP 301 redirect any inbound display url that matches your ID but doesn't match the text to the correct text.

    Example: http://stackoverflow.com/questions/820493/random-text-can-cause-problems 301 -> http://stackoverflow.com/questions/820493/can-an-seo-friendly-url-contain-a-unique-id

    • Use canonical URLs.

提交回复
热议问题