继续浏览精彩内容
慕课网APP
程序员的梦工厂
打开
继续
感谢您的支持,我会继续努力的
赞赏金额会直接到老师账户
将二维码发送给自己后长按识别
微信支付
支付宝支付

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

html5零基础入门学习
关注TA
已关注
手记 246
粉丝 81
获赞 517

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

 

 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:

 

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

For example : the old one   of index.html is


           

<title>About IAOP</title>
           Now we should change to            
           
           
<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


           

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

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


           

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

We should replace with


           

<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.


           

<script type="text/javascript">     var _gaq_gaq = _gaq || [];    _gaq.push(['_setAccount', 'UA-29894656-1']);   _gaq.push(['_trackPageview']);     (function() {     var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);    })();   </script>
           

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.


           

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

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:


           

#leftNavigation h2{ background: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


           

body{        background-image:url(../images/bkr.jpg);        background-repeat:repeat-x;       background-position: center top;       margin-top: 0px;        margin-right: 0px;       margin-bottom: 0px;       margin-left: 0px;       font-family: Arial, Helvetica, sans-serif;        font-size: 12px;       color: #333333;       overflow:scroll;       }
                        We should modify it to


           

body{        background-image:url(../images/bkr.jpg);        background-repeat:repeat-x;       background-position: center top;       margin:0 0 0 0;       font-family: Arial, Helvetica, sans-serif;        font-size: 12px;       color: #333333;       overflow:scroll;       }
           

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.

 

 

打开App,阅读手记
0人推荐
发表评论
随时随地看视频慕课网APP