热门IT资讯网

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

发表于:2024-11-26 作者:热门IT资讯网编辑
编辑最后更新 2024年11月26日,举个例子,假如上次我帮某外包网站做搜索引擎优化。The following is the guideline of SEO based on my own experience, please ask

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

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

For example : the old one of index.html is


  1. <title>About IAOPtitle>
Now we should change to
  1. <title>全球外包专家-简介title>

Step 5:Every word in the paragraph with the content "外包","外包业","外包专家","外包协会" should be embedded into tag.

This rule is applicable for every page.

For example: in index.html line 43-45


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

Step 6:Every word in the paragraph with the content "外包","外包业","外包专家","外包协会" should be added with the 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 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="p_w_picpaths/c7414231-f191-4e1d-a50a-1eef6d949a70.jpg" alt="no p_w_picpath">

We should replace with


  1. <img src="p_w_picpaths/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. var _gaq_gaq = _gaq || [];
  3. _gaq.push(['_setAccount', 'UA-29894656-1']);
  4. _gaq.push(['_trackPageview']);
  5. (function() {
  6. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  7. ga.src = ('https:' == _document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  8. var s = document.getElementsByTagName('script')[0]; s[xss_clean].insertBefore(ga, s);
  9. })();
  10. 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.


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

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


  1. #leftNavigation h2{ background:url(../../p_w_picpaths/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. background-p_w_picpath:url(../p_w_picpaths/bkr.jpg);
  3. background-repeat:repeat-x;
  4. background-position: center top;
  5. margin-top: 0px;
  6. margin-right: 0px;
  7. margin-bottom: 0px;
  8. margin-left: 0px;
  9. font-family: Arial, Helvetica, sans-serif;
  10. font-size: 12px;
  11. color: #333333;
  12. overflow:scroll;
  13. }
We should modify it to


  1. body{
  2. background-p_w_picpath:url(../p_w_picpaths/bkr.jpg);
  3. background-repeat:repeat-x;
  4. background-position: center top;
  5. margin:0 0 0 0;
  6. font-family: Arial, Helvetica, sans-serif;
  7. font-size: 12px;
  8. color: #333333;
  9. overflow:scroll;
  10. }

Step 14:Check every hyperlink 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.

0