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

前端 未结 11 1142
傲寒
傲寒 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:14

    Getting rid of the parameterized URL will definitely help. From my experience, including the ID does not hurt or help, as long as there are no '?key=value' pairs in the url.

    0 讨论(0)
  • 2021-01-30 00:18

    I have two seemingly contradictory points to make here:-

    1. Nobody looks at URLs! Experience has "trained" browser users to render the "Address" box contents as invisable, they know the contents will be any two of 'ureadable', 'meaningless' and 'confusing', hence they just ignore it completely.

    2. Using a String which can be easily converted to an integer may offer a slight performance advantage over using a longer string which is slightly harder (hash() vs. to_int() ) to convert into an integer. However in the context of the average web application any performance difference would would be negligable.

    My advice would be to stick with what your comfortable with.

    0 讨论(0)
  • 2021-01-30 00:23

    Duplicate refer cause more negative impact compare to friendly URL, be careful about using fake text with id, your competitors could miss use this.

    0 讨论(0)
  • 2021-01-30 00:25

    https://stackoverflow.com/questions/820493/can-an-seo-friendly-url-contain-a-unique-id

    I'd say you're fine.

    0 讨论(0)
  • 2021-01-30 00:27

    I'm not aware of any problems caused by adding an ID to a URL. In fact it can be extremely useful, as it allows the human/search engine friendly part of the URL to be changed without causing a broken link to a page that a search engine has already indexed. Using SO as an example, here's a link to your question:

    https://stackoverflow.com/questions/820493/you-can-put-any-text-you-want-here

    0 讨论(0)
提交回复
热议问题