搜索引擎优化(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,如需转载请自行联系原作者

目录
相关文章
|
6月前
|
机器学习/深度学习 JavaScript 算法
GAN Step By Step -- Step7 WGAN
GAN Step By Step -- Step7 WGAN
GAN Step By Step -- Step7 WGAN
|
机器学习/深度学习 编解码 计算机视觉
GAN Step By Step -- Step5 ACGAN
GAN Step By Step -- Step5 ACGAN
GAN Step By Step -- Step5 ACGAN
|
机器学习/深度学习
GAN Step By Step -- Step6 LSGAN
GAN Step By Step -- Step6 LSGAN
GAN Step By Step -- Step6 LSGAN
|
机器学习/深度学习 数据挖掘 PyTorch
GAN Step By Step -- Step3 DCGAN
GAN Step By Step -- Step3 DCGAN
GAN Step By Step -- Step3 DCGAN
|
机器学习/深度学习
GAN Step By Step -- Step4 CGAN
GAN Step By Step -- Step4 CGAN
GAN Step By Step -- Step4 CGAN
|
机器学习/深度学习 设计模式 编解码
GAN Step By Step -- Step2 GAN的详细介绍及其应用(上)
GAN Step By Step -- Step2 GAN的详细介绍及其应用
GAN Step By Step -- Step2 GAN的详细介绍及其应用(上)
|
机器学习/深度学习 定位技术
GAN Step By Step -- Step1 GAN介绍
GAN Step By Step -- Step1 GAN介绍
GAN Step By Step -- Step1 GAN介绍
|
机器学习/深度学习 运维 定位技术
GAN Step By Step -- Step2 GAN的详细介绍及其应用(下)
GAN Step By Step -- Step2 GAN的详细介绍及其应用(下)
GAN Step By Step -- Step2 GAN的详细介绍及其应用(下)
|
JSON 监控 Linux
step by step,实现自定义监控脚本
# 背景 有几个客户在使用自定义监控,通过脚本方式上报数据时,反馈我们的文档不细致,对于aliyuncli的配置不熟,对于自定义指标的部分字段的含义不理解。 因此有必要再整理一个stepbystep的文档,描述清楚每一步的具体含义。 希望能够根据这个文档,能够快速的完成一个自定义的监控脚本。 # 前置条件 * 你需要有一个阿里云官网账号 # 生成ak(accessk
2376 0
|
SQL 存储 数据库
Step By Step 一步一步写网站[1] —— 填加数据(二)
(这个是我认真思考并精心写的,能不能算作高质量我就不敢说了)建议先看一下第一篇:http://www.cnblogs.com/jyk/archive/2007/03/23/685075.html 上一篇写了我常用的方法,这里想说一下我猜想的OOD的方法,之所以用猜想,是因为我没有用过OOD的方法,我也不知道我这么写对不对,所以用了“猜想”二字。
1100 0