标签:
The idea here is that most of us should already know most of what is on this list. But there just might be one or two items you haven‘t really looked into before, don‘t fully understand, or maybe never even heard of.
Interface and User Experience
rel="nofollow"
to user-generated links to avoid spam.Security
Performance
favicon.ico
file in the root of the site, i.e. /favicon.ico
. Browsers will automatically request it, even if the icon isn’t mentioned in the HTML at all. If you don’t have a /favicon.ico
, this will result in a lot of 404s, draining your server’s bandwidth.SEO (Search Engine Optimization)
example.com/pages/45-article-title
instead of example.com/index.php?page=45
#
for dynamic content change the #
to #!
and then on the server $_REQUEST["_escaped_fragment_"]
is what googlebot uses instead of #!
. In other words, ./#!page=1
becomes ./?_escaped_fragments_=page=1
. Also, for users that may be using FF.b4 or Chromium, history.pushState({"foo":"bar"}, "About", "./?page=1");
Is a great command. So even though the address bar has changed the page does not reload. This allows you to use ?
instead of #!
to keep dynamic content and also tell the server when you email the link that we are after this page, and the AJAX does not need to make another extra request./sitemap.xml
.<link rel="canonical" ... />
when you have multiple URLs that point to the same content, this issue can also be addressed from Google Webmaster Tools.301 Moved Permanently
) asking for www.example.com
to example.com
(or the other way round) to prevent splitting the google ranking between both sites.Technology
Bug fixing
Other
Lots of stuff omitted not necessarily because they‘re not useful answers, but because they‘re either too detailed, out of scope, or go a bit too far for someone looking to get an overview of the things they should know. Please feel free to edit this as well, I probably missed some stuff or made some mistakes.
5 essential skills every Web Developer should have?
标签:
原文地址:http://blog.csdn.net/beijiguangyong/article/details/48143129