搜索引擎优化(step-by-step)

简介:

举个例子,假如上次我帮某外包网站做搜索引擎优化。

 

 The following is the guideline of SEO based on my own experience, please ask some page developer to do them inour website:

      Step 1:Select keywords:

 Please use the following keyword in this sequence  ( Ignore the keywords supplied by our partner, they don’t work well)

      外包业,外包100 强,外包协会,外包专家,外包
 

     Step 2:register a good domain name

     You can apply for a domain name in http://www.bizcn.com website  or http://www.3721.com

     I know that the British IAOP uses www.iaop.org ,so if our website deploy in China ,I suggest that we can register a domain name:

    The following domain names are recommended by me:

     iaop.outsourcing.org

    iaop.outsourcing.com.cn

    (Make sure that org domain is better than com, and .com.cn is better than .com )

 

    Step 3:Add the keywords in  Step 1 into index.html as follows:

 

 
     
  1.   
  2.   
  3. <meta http-equiv="content-type" content="text/html; charset=GBK" /> 
  4.  
  5. <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> 
  6.  
  7. <meta name="Keywords" content="外包业,外包100强,外包协会,外包专家,外包"/> 
  8.  
  9. <meta name="Description" content="最重要的专业性国际外包研究联合会,中国外包行业的进步,全球外包领域顶尖专家,外包跨越地平线,颠覆思维" /> 
  10.  
  11. <title>About IAOP</title> 
  12.  
  13.   
 
Step 4: Change the title of every page with the prefix “ 全球外包专家

For example : the old one of index.html is


 
     
  1. <title>About IAOP</title> 
Now we should change to

 
     
  1. <title>全球外包专家-简介</title> 
 

Step 5:Every word in the paragraph with the content “外包”,“外包业”,外包专家”,”外包协会” should be embedded into <b></b> tag.

This rule is applicable for every page.

For example: in index.html  line 43-45


 
     
  1. <td> 
  2.  
  3. 1993年,全球著名的外包专家麦克尔•卡伯特先生,在美国创立了国际外包专家协会-The International Association of Outsourcing Professionals (IAOP) ,这是一个全球性的标准制定组织,通过推出各种专业标准和行业规范,致力于推动外包产业的发展。<br/> 
  4.  
  5. </td> 
  6.  
  7.   
Should be replaced with:
 
     
  1. <td> 
  2.  
  3. 1993年,全球著名的<b>外包</b>专家麦克尔•卡伯特先生,在美国创立了国际<b>外包专家</b>协会-The International Association of Outsourcing Professionals (IAOP) ,这是一个全球性的标准制定组织,通过推出各种专业标准和行业规范,致力于推动<b>外包产业</b>的发展。<br/> 
  4.  
  5. </td> 
  6.  
  7.   
 

Step 6:Every word in the paragraph with the content “外包”,“外包业”,外包专家”,”外包协会” should be added with the <a></a> hyperlink.

This rule is applicable for every page.

So ,in the above paragraph ,all the “外包”,”外包业”,”外包专家”,”外包协会” should be linked to http://baike.baidu.com/view/123205.htm

 

Step 7:Every <img> link should be added with an “alt” attribute ,and in this attribute ,we should add some keyword.

This rule is applicable for every page.

For example ,in contactus.html line 29 ,the original one is


 
     
  1. <img src="images/c7414231-f191-4e1d-a50a-1eef6d949a70.jpg" alt="no image"> 

We should replace with


 
     
  1. <img src="images/c7414231-f191-4e1d-a50a-1eef6d949a70.jpg" alt="外包服务联系商"> 
 

Step 8:Move all the javascript out of the html page ,and include them in the html page.

This rule is applicable for every page.

For example , IAOP membership.html from Line 200 to Line 212 has the following javascript.


 
     
  1. <script type="text/javascript"> 
  2.  
  3.   
  4.  var _gaq_gaq = _gaq || []; 
  5.  
  6.   _gaq.push(['_setAccount', 'UA-29894656-1']); 
  7.   _gaq.push(['_trackPageview']); 
  8.   
  9.   (function() { 
  10.     var ga = document.createElement('script'); ga.type = 'text/javascript'ga.async = true
  11.  
  12.     ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; 
  13.  
  14.     var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); 
  15.  
  16.   })(); 
  17.   
  18. </script> 
  19.  
  20.   

We should create a folder named js ,then create a file named xxx.js ,then include this js in this page using the following grammar.


 
     
  1. <script type="text/javascript" src="$../js/xxx.js"></script> 
  2.  
  3.   

Step 9: url rewrite

I don’t know whether this website will contain dynamic page or only contain some static page ,if you need to let page pass parameter such as http://abc.jsp?a=2&b=3

You should use some url rewrite mechanism ,such as http://abc/2/3

Details if you need it ,I can add more .

 

Step 10:If possible ,add the breadcrumb for every page

For example ,首页>外包资讯上海外包资讯

 

Step 11:Compress static resource files

make sure that compress every css /js file using the tool naming yui-compressor.

 

Step 12:Merge images

Use CSS Sprite to merge every small image into a whole big image named iaopSprite.gif ,and in the css file ,use the background image and position to allocate the small image coordinate in th big image as follows:


 
     
  1. #leftNavigation h2background:url(../../images/iaopSprite.gif) -209px -38px;width:181px;height:24px; } 
 

Step 13:Optimize all the css file  of margin and padding  attribute as follows:

For example, in aboutIAOP.css line 49 to line 61 ,we have


 
     
  1. body{ 
  2.  
  3.       background-image:url(../images/bkr.jpg); 
  4.  
  5.       background-repeat:repeat-x
  6.       background-positioncenter top
  7.       margin-top0px
  8.  
  9.       margin-right0px
  10.       margin-bottom0px
  11.       margin-left0px
  12.       font-familyArialHelveticasans-serif
  13.  
  14.       font-size12px
  15.       color#333333
  16.       overflow:scroll
  17.       } 
 
We should modify it to


 
     
  1. body{ 
  2.  
  3.       background-image:url(../images/bkr.jpg); 
  4.  
  5.       background-repeat:repeat-x
  6.       background-positioncenter top
  7.       margin:0 0 0 0
  8.       font-familyArialHelveticasans-serif
  9.  
  10.       font-size12px
  11.       color#333333
  12.       overflow:scroll
  13.       } 
  14.  
  15.   

Step 14:Check every hyperlink <a> tag in every page so that all of these links are valid:

Use http://validator.w3.org/checklink tool to make sure that every link that exists in your website is valid link.

 

Step 15:Make sure that the website has updating frequency (daily update is recommend):

I suggest that we use Jenkins/Hudson to make sure the website has daily build every mid-night (low throughput at mid-night)

Create  a Jenkins project ,then configure it ,to make sure the website will build every night and deploy to container.

 

 




本文转自 charles_wang888 51CTO博客,原文链接:http://blog.51cto.com/supercharles888/840082,如需转载请自行联系原作者

目录
相关文章
|
3天前
|
搜索推荐 编译器 Linux
一个可用于企业开发及通用跨平台的Makefile文件
一款适用于企业级开发的通用跨平台Makefile,支持C/C++混合编译、多目标输出(可执行文件、静态/动态库)、Release/Debug版本管理。配置简洁,仅需修改带`MF_CONFIGURE_`前缀的变量,支持脚本化配置与子Makefile管理,具备完善日志、错误提示和跨平台兼容性,附详细文档与示例,便于学习与集成。
271 116
|
18天前
|
域名解析 人工智能
【实操攻略】手把手教学,免费领取.CN域名
即日起至2025年12月31日,购买万小智AI建站或云·企业官网,每单可免费领1个.CN域名首年!跟我了解领取攻略吧~
|
12天前
|
安全 Java Android开发
深度解析 Android 崩溃捕获原理及从崩溃到归因的闭环实践
崩溃堆栈全是 a.b.c?Native 错误查不到行号?本文详解 Android 崩溃采集全链路原理,教你如何把“天书”变“说明书”。RUM SDK 已支持一键接入。
663 219
|
5天前
|
数据采集 人工智能 自然语言处理
Meta SAM3开源:让图像分割,听懂你的话
Meta发布并开源SAM 3,首个支持文本或视觉提示的统一图像视频分割模型,可精准分割“红色条纹伞”等开放词汇概念,覆盖400万独特概念,性能达人类水平75%–80%,推动视觉分割新突破。
349 34
Meta SAM3开源:让图像分割,听懂你的话
|
10天前
|
人工智能 移动开发 自然语言处理
2025最新HTML静态网页制作工具推荐:10款免费在线生成器小白也能5分钟上手
晓猛团队精选2025年10款真正免费、无需编程的在线HTML建站工具,涵盖AI生成、拖拽编辑、设计稿转代码等多种类型,均支持浏览器直接使用、快速出图与文件导出,特别适合零基础用户快速搭建个人网站、落地页或企业官网。
1575 157
|
存储 人工智能 监控
从代码生成到自主决策:打造一个Coding驱动的“自我编程”Agent
本文介绍了一种基于LLM的“自我编程”Agent系统,通过代码驱动实现复杂逻辑。该Agent以Python为执行引擎,结合Py4j实现Java与Python交互,支持多工具调用、记忆分层与上下文工程,具备感知、认知、表达、自我评估等能力模块,目标是打造可进化的“1.5线”智能助手。
897 61
|
7天前
|
编解码 Linux 数据安全/隐私保护
教程分享免费视频压缩软件,免费视频压缩,视频压缩免费,附压缩方法及学习教程
教程分享免费视频压缩软件,免费视频压缩,视频压缩免费,附压缩方法及学习教程
295 140