【发布时间】:2014-12-07 13:21:04
【问题描述】:
我正在使用友好的 URL,如下所示:
http://localhost/gallery/photo/this-is-a-url-friendly-photo-caption
在友好 URL 上,我需要添加照片的 ID,但环顾四周,我看到了将 ID 添加到友好 URL 的两种方式,pre 和 post,就像这样
http://localhost/gallery/photo/this-is-a-url-friendly-photo-caption.529
或
http://localhost/gallery/photo/529/this-is-a-url-friendly-photo-caption
使用一种方式有优势吗?还是只是偏好/个人品味的问题?
【问题讨论】:
标签: url-rewriting seo url-design