在 URL 中表示非 ASCII 字符可以在搜索引擎中提供更好的页面排名吗?

发布于 2024-07-14 00:16:55 字数 469 浏览 6 评论 0原文

世界上大部分地区使用非 ASCII 字符。 但有些习语使用 é、ö、á、ã、õ 等,可以“转换”为 ascii。

假设帖子的标题是:

Configuração é fácil!

如何在 URL 中表示它?

www.myblog.com/post/1200/Configura__o-_-f_cil

更好的代表是

www.myblog.com/post/1200/Configuracao-e-facil

维基百科这样做,如 http://en.wikipedia.org/wiki/Deja_vu< /a>

这会提高搜索引擎中的页面排名吗?

如何用您最喜欢的语言做到这一点?

Most part of the world uses non-ASCII characters. But some idioms use things like é, ö, á, ã, õ etc, which can be "converted" to ascii.

Suppose the title of the post is:

Configuração é fácil!

How to represent that in a URL?

www.myblog.com/post/1200/Configura__o-_-f_cil

A much better representantion is

www.myblog.com/post/1200/Configuracao-e-facil

Wikipedia do that as in http://en.wikipedia.org/wiki/Deja_vu

Will this improve page rank in search engines?

How to do that in your favorite language?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一片旧的回忆 2024-07-21 00:16:55

在 Perl 中

使用 Text::Uidecode :

#!/usr/bin/perl -w

use utf8;
use Text::Unidecode;
print unidecode(
    "áéíóú\n"
);

# That prints: aeiou 

In Perl

Use Text::Unidecode:

#!/usr/bin/perl -w

use utf8;
use Text::Unidecode;
print unidecode(
    "áéíóú\n"
);

# That prints: aeiou 
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文