How to handle diacritics (accents) when rewriting 'pretty URLs'

前端 未结 6 806
长情又很酷
长情又很酷 2020-11-30 09:48

I rewrite URLs to include the title of user generated travelblogs.

I do this for both readability of URLs and SEO purposes.

 http://www.example.com/gall         


        
6条回答
  •  迷失自我
    2020-11-30 10:38

    To me the third is most readable.

    You could use a little dictionary e.g. ï -> i and ü -> ue to specify how you'd like various charcaters to be translated.

提交回复
热议问题