Removing ID from CakePHP URL?

前端 未结 3 523
没有蜡笔的小新
没有蜡笔的小新 2021-01-29 04:44

Hey guys! Working on a new Cake app and wondering if there is anyway for me to remove the ID-in-URL routing from Cake. Perhaps by passing the ID in POST somehow? Having the ID p

3条回答
  •  盖世英雄少女心
    2021-01-29 05:13

    Why do you care? URL-s are optimized for SEO reasons, an ID won't matter if it's ain't too long. If the latter, consider using a shorter one with numbers and letters in them instead, it will be as difficult to guess as a long one with just numbers.

    If you are not using GET and you do not supply the params in the URL, your users won't be able to copy-paste the location.

提交回复
热议问题