这不是关于“如何”,而是“如何最好”。
我了解大多数带有虚荣网址的网站都有基本规则:
- >4 个字符(涵盖一堆有用的标记,如“博客”和“工作”,但还有一长串“4 字母单词”)
- 从阿尔法开始
- 仅限字母数字(也可能是 ._-,但 user.name 与用户名相同)
- 禁止使用保留字以防止滥用和避免混淆(例如:contact、about、username、vanityurl、[还有哪些其他的?])
对于添加虚荣网址的网站,还有哪些其他重要规则需要考虑?
应该保留哪些常用词以防止混淆或滥用?
这不是关于“如何”,而是“如何最好”。
我了解大多数带有虚荣网址的网站都有基本规则:
对于添加虚荣网址的网站,还有哪些其他重要规则需要考虑?
应该保留哪些常用词以防止混淆或滥用?
我将开始发布到目前为止我发现的内容。
设置字符限制 >4 个字符
必须至少包含一个 alpha [az]
可选特殊字符:._-
user.name
= username
)user..name
)-user-name-
, .username-
)通过防止看起来相似的字符来避免字符混淆 l,1
,o0
colbert
已注册,则阻止co1bert
或c01bert
不被注册不区分大小写
保留字表
about, aboutus, account, accounts, add, admin, administer, administrator, admins, ajax, anon, anonymous, apache, api, app, apps, archive, archives, article, articles, auth, authenticate, authentication, author, backup, better, blog, blogger, cache, careers, cart, changelog, checkout, client, clients, codereview, compare, config, configuration, connect, contact, contactus, contributor, cpanel, create, css, daemon, data, database, deal, deals, delete, director, direct_messages, docs, documentation, download, downloads, edit, editor, email, emailus, employment, enterprise, explore, facebook, faq, faqs, favorites, feed, feeds, fleet, fleets, follow, followers, following, font, fonts, forum, forums, friend, friends, friending, ftpuser, games, gist, group, groups, guest, help, home, host, hosting, hostmaster, http, httpd, idea, ideas, image, images, include, includes, index, indexes, info, invitation, invitations, invite, is, it, job, jobs, json, lib, library, list, lists, login, logout, logs, mail, map, maps, master, mine, mis, misc, miscellaneous, moderate, moderator, module, modules, mysql, news, nobody, node, nodes, oauth, oauth_clients, offers, office, openid, operate, operator, oracle, order, orders, organizations, owner, password, passwords, plans, poll, polls, popular, post, postgres, postmaster, president, privacy, profile, profiles, projects, public, put, pwnd, pwned, pwnage, question, questions, qwerty, rdf, recruit, recruiter, recruiters, recruitment, register, registrar, registration, remove, replies, root, rss, sales, save, save, script, scripts, search, security, server, service, sessions, settings, shell, shop, signup, signout, sitemap, spam, ssl, ssladmin, ssladministrator, sslwebmaster, stat, stats, statistics, status, stories, student, styleguide, subscribe, support, supporter, survey, surveys, sysadmin, template, templates, terms, test, tester, testing, tests, testuser, theme, themes, tour, tomcat, translations, trends, tutorial, tutorials, twitter, twittr, unfollow, unsubscribe, url, update, upload, uploads, user, users, video, videos, weather, webadmin, webmaster, widget, widgets, wiki, www, wwww, xfn, xmpp, yml, yaml
在谈论虚荣 URL 时,请记住两件事。如果您提供面向产品的网站,请优化 URL 中的产品名称。或者,如果您的网站类似于社交网络,则优化深层链接中的用户名、社区名或组名。