1 / 3
Caption Text
2 / 3
Caption Two
3 / 3
Caption Three margin testing

Friday, April 2, 2010

Zencart多语言URL设定SEO实施方案

Zencart多语言URL设定SEO实施方案 - SEO起点网络

[来源:来自网络] [作者:SEO起点] [日期:09-09-01] [热度:79]

从SEO角度看zencart的多语言实施方案
一般来说,网站的多语言实施有四种方法,详述如下(假设公司名称为abc,要实现中文和英文两种语言版本,语言代码分别为cn和en)

1,注册两个域名,比如:www.abc-cn.com和www.abc-en.com,或用子域名,比如:cn.abc.com和en.abc.com。两种语言的网站前台独立,后台可以独立,可以统一。阿里巴巴就是用的子域名方式。

2,只用一个域名,比如:www.abc.com,两种语言版本分别放在两个子目录中,www.abc.com/cn为中文网站, http://www.abc.com/en为英文网站。www.abc.com可以做成一个引导页,或直接301跳转到默认语言网站。两种语言的网站前台和后台都是统 一的。微软用的是这种方式。

3,只用一个域名,比如:www.abc.com,两种语言是通过url中传递参数来切换的,可以设定默认语言。比如默认语言为中文,打开 http://www.abc.com/test.php是中文页面,打开www.abc.com/test.php?language=en是对应的英文页面,打开 http://www.abc.com/test.php?language=cn是同样的中文页面。如果session被有效启用,url中附加的语言选项会用来改变 session中的语言变量,同一个session中访问同样的不带语言选项的url时,语言自动切换,比如访问完 http://www.abc.com/test.php?language=en后,再访问www.abc.com/test.php,就变成英文页面了。 zencart用的就是这种方式。

4,只用一个域名,比如:www.abc.com,两种语言是通过客户端的js脚本语言实现切换的,这种方式最简单,基本不需要改动程序。现在有些网站繁体中文页面的html源代码是简体中文,就是这种方法。

从seo角度来看,这四种方式如何评价?

Ethan认为,第一种和第二种方式都可以,各有千秋,第三种方式和第四种方式不可取。

先说为什么不可取。第四种,由于搜索引擎抓取页面时是略过js的,所以在搜索引擎眼里根本不存在切换过的语言页面,网站只有默认语言的页面。

第三种,以zencart为例,zencart的后台sessions菜单里有两项:强制使用cookie和阻止机器人sessions。这里面可以细分为三种情况:

1,如果强制使用cookie,由于搜索引擎机器人不接受cookie,不管是否阻止机器人sessions,机器人都无法启动session。

2,如果不强制使用cookie,同时阻止机器人sessions,则机器人无法启动session。

3,如果不强制使用cookie,同时允许机器人sessions,虽然机器人可以启动session,但程序会在页面里链接的后面会附上一长串 sessionid,这样机器人反复抓取一个网站后,会抓到大量内容一样而url不同的页面。这是一种普遍的情况,为了应付这种情况,搜索引擎机器人会自 动略去url里的sessionid,这就造成了机器人可以启动session,却无法获取sessionid的情况,等效于无法启动 session,服务器资源还被浪费了。

zencart一般设置为:关闭强制使用cookie,打开阻止机器人sessions,属于上述第二点,机器人无法启动session。但是由上 述分析可以看出,不管怎么设置,机器人都无法有效启用session,所以机器人只有在url中传递语言参数时才会抓取到该语言的页面。但从链接结构看,网站中这种页面属于终点页面,即只有一个链接指向这种页面。至少有两个不同的链接指向一个页面时,这个页面才有可能被搜索引擎收录,所以这种终点页面无法被收录。(此处有误,修正详见从seo角度看zencart的多语言实施方案 - 续)
"搜索引擎机器人会自动略去url里的sessionid"和"至少有两个不同的链接指向一个页面时,这个页面才有可能被搜索引擎收录"这两点只是seo界的常识,并没有严格的证明,但足以做为网站设计的标准看待。

再说说可取的做法。第一种和第二种都可取,因为同一个页面的不同语言版本分别对应了不同的并且是唯一的URL。zencart通过适当改造可以实现第一种或第二种方式,并且后台统一为一个管理界面,不同语言的产品信息统一在一个数据库中,便于管理和操作。
搜索引擎早已经很聪明了,不用太费心在SEO上,关键还是做好网站内容。zencart采用第三种方式,一样可以很好的被搜索引擎收录各种语言页面,Google看看 demo.zen-cart.cn"

"搜索引擎早已经很聪明了,不用太费心在SEO上,关键还是做好网站内容。"这句话是对的。Ethan早就写文章指出,只有网站内容有价值了,别人 才会愿意给你链接,搜索引擎是通过这些反向链接(如果其它网页上有链接指向你的一个网页,那么这个链接就是你的这个网页的一个反向链接)判断你的网站的质 量的,因而你的网站排名会较好。seo本身并不能使你的网站内容更有价值,所以说关键还是做好网站内容。

但是,在seo上是要费心的。Ethan认为,采用session机制实现多语言的网站,仔细审视这种机制在搜索引擎眼里是否有效,是十分必要的,这关系到网站大量的页面是否被收录以及是否获得好的排名的根本问题之一,决不属于"太费心"之列。

google网站管理员指南明确指出:"允许搜索漫游器在不采用会跟踪其在网站上浏览路径的会话 ID 或参数的情况下抓取您的网站。这些技术对跟踪单个用户的行为非常有用,但漫游器的访问模式却完全不同。"这里"漫游器"就是"机器人"的意思。

具体可以用英文yahoo来分析一下,处于跟google商业利益的博弈关系,yahoo为我们提供了更详细的反向链接的信息。

Wednesday, March 31, 2010

PHP Server Side Includes (SSI) - include() VS require()

Server Side Includes (SSI)

You can insert the content of one PHP file into another PHP file before the server executes it, with the include() or require() function.

The two functions are identical in every way, except how they handle errors:
  • include() generates a warning, but the script will continue execution
  • require() generates a fatal error, and the script will stop
These two functions are used to create functions, headers, footers, or elements that will be reused on multiple pages.

Server side includes saves a lot of work. This means that you can create a standard header, footer, or menu file for all your web pages. When the header needs to be updated, you can only update the include file, or when you add a new page to your site, you can simply change the menu file (instead of updating the links on all your web pages).

http://www.w3schools.com/PHP/php_includes.asp

Monday, March 29, 2010

Ubuntu 8.10 approaches end-of-life

Ubuntu 8.10 approaches end-of-life - The H Open Source: News and Features

Ubuntu Logo Ubuntu Release Manager Steve Langasek has reminded users that Ubuntu 8.10, code named Intrepid Ibex, will reach its end-of-life on Friday the 30th of April, 2010. Version 8.10 of the Debian-derived Linux distribution was released on the 30th of October, 2008 and was the first to feature an Ubuntu LiveUSB creator and an encrypted private directory for users. The desktop edition included, for example, GNOME 2.24, GIMP 2.6, Firefox 3.0 and OpenOffice 2.4. After the 30th of April, no new updates, including security updates and critical fixes, will be available for Intrepid Ibex.

Intrepid Ibex users are advised to upgrade to one of the current standard releases, Ubuntu 9.04 (Jaunty Jackalope) or version 9.10 (Karmic Koala), to continue receiving updates. The developers note that users wanting to upgrade to 9.10 from 8.10 will have to upgrade to 9.04 first. The standard releases are supported for 18 months of updates for both the desktop and server versions. Long Term Support (LTS) versions of Ubuntu are supported for three years for the desktop releases and five years for server releases.

The current development release is Ubuntu 10.04 LTS Beta 1, code named "Lucid Lynx", from earlier this month. The final version of Lucid Lynx is scheduled to be released on the 29th of April of 2010. Ubuntu is sponsored by UK based Canonical Ltd.

15 Games for Linux

Stop Wine-ing: 15 Games for Linux | Linux Magazine:

"While gaming on Linux has suffered some recent setbacks with id Software and Atari seemingly having abandoned the Linux platform, there are some bright spots on the horizon. (See Commercial Gaming, Coming Soon to Linux?.)

Many believe that Wine and other Windows emulation solutions may be their only recourse for high-quality gaming enjoyment. That, however, it not entirely true. There are plenty of smaller, independent gaming houses developing and releasing premium commercial games for Linux alongside Mac and Windows offerings. Search hard enough and you’ll find games ranging from low-resource puzzle solvers to 3D first-person shooters.

Let’s have a look at some of the games recently released for Linux and a few up-and-coming prospects for the future."

Welcome to bloggers from China to Standard Bank in South Africa

Welcome to bloggers from China | Standard Bank blog

Submitted by Standard Bank Team on Thu, 2010/03/18 - 09:54

We are excited to be able to meet face-to-face a group of influential bloggers from China to the Standard Bank Group head office today.

The bloggers are visiting South Africa to find out more about the country so they may present their perceptions to their followers in China and around the world.

During their visit to Standard Bank Group's head office they will hear more about our history, business and social media activities.

Standard Bank Team's picture

List of Chinese bloggers

Submitted by Standard Bank Team on Thu, 2010/03/18 - 11:02.

The bloggers cover a variety of subjects from business, society, culture and media to Internet, science and technology. Their trip is was coordinated by the South Africa Mission in Beijing. These are some of the bloggers from China.

Ping Ke 平客 and Steven Lin (Flypig) 飞猪
http://antiwave.net/
Microblogs: http://t.sina.com.cn/flypig and http://t.sina.com.cn/buchimifan.
This duo are well known in Internet circles for their audio podcast at Antiwave.net. They have not updated in a long time, but a series of podcasts almost live from South Africa would be very well received in China's media and Internet circles. In addition, both of them have popular microblogs (Twitter type mini blogs) on Sina.

William Long
www.williamlong.info
Widely-followed tech blogger, influential in Internet and IT industries.

WebLeOn
webleon.org
Internet and tech blogger with a huge Feedburner and Feedsky readership.
Also on Twitter: http://twitter.com/webleon

Acosta
Internet celebrity.
Currently the third most popular celebrity blogger on Sina, and the only one to have drawn his celebrity entirely from his blog. Initially enshrouded in mystery and the subject of speculation about behind-the-scenes hit-count manipulation, Acosta has since gone on to publish a volume of essays and impress at least a segment of the literary establishment with his writing abilities. (English sample here: http://cnreviews.com/blogs/the-desert-spring_20100201.html )
Blog: http://blog.sina.com.cn/acosta

Beijing Female Patient (北京女病人)
http://lome2000.blog.163.com/?Life2
A popular female blogger who works in the media, her blogs centre on her personal life, but has a huge following.

Chun Sue 春树
http://blog.sina.com.cn/springtree
Microblog (which she uses more frequently): http://t.sina.com.cn/springtree
Famously the author of Beijing Doll (2002), Chun Sue supposedly wrote the first "cruel youth" novel in China, published when she was 17. She regularly blogs and microblogs on Sina and is very popular with the generation of Chinese people born after 1980.
Contact: "Chunsue" ,

Shi Zhao
http://shizhao.org/
http://twitter.com/ShiZhao
China Wikipedia programmer and blogger. Well known for being part of a team who conducts the Chinese Bloggers Conference every year.
Contact: @shizao on Twitter, shizhao@gmail.com, 13691189514

Andrew Yu (安猪)
http://anzhu.net/
http://www.1kg.org/
The founder of one of the more well-known NGOs in China, 1kg which encourages city youth when they go on holiday to the countryside to take school supplies for rural schools. Andrew Yu has a background in the sciences but has turned his organization into more of a commercial model than purely not-for-profit. However, his company's blog on NGOs is very widely followed.

Mr Sean Shu,
General Manager & Chief Editor of Da Qi, the biggest Chinese community website (www.daqi.com)

Ms Vina
Bloger of Douban Website, one of the most popular websites in China, some of her blogs are listed as following:
my douban:http://www.douban.com/people/nanarun/
my blog:http://vina.blogcn.com/index.shtml
http://t.sina.com.cn/vinana
http://vina.blogcn.com/diary,29430488.shtml
http://vina.blogcn.com/diary,25076769.shtml
http://vina.blogcn.com/diary,24160305.shtml
http://vina.blogcn.com/diary,22922562.shtml
http://vina.blogcn.com/diary,24652623.shtml
http://vina.blogcn.com/diary,24584983.shtml
http://vina.blogcn.com/diary,19787776.shtml

Mr Wang Jilu
Deputy Chief Director of Netease, www.netease.com

Sunday, March 28, 2010

Five Tips on How to Build a Quiet PC

Five Tips on How to Build a Quiet PC

If you're a computer enthusiast who's ready to mod your current computer with the latest and greatest computer hardware, or if you're someone who just can't stand the noise your computer is constantly making, you're in luck. Below are the top five tips on building a quiet pc.

1.) Power Supply - This is the device that produces the power for your computer. Unfortunately, this is almost always the noisiest part your computer includes. It usually contains one or two fans which are used to cool the device down. Fortunately, with today's technology, you can now buy power supplies which only use their fans when the temperature reaches a set point. This will both reduce noise, and save energy.

2.) Case Fans - The reasons for having case fans are obvious, to create proper airflow. Unfortunately, for some computers, they're only there to create obnoxious noise. If your computer is mainly used for documents, internet, and e-mail, chances are you don't need more than one case fan. A system used for the latest computer games on the other hand, will need proper airflow to bring internal temperatures down to a safe operating level.

3.) Disk Drives - If this is your noise issue, there isn't too much you can do, except invest in a CD or DVD drive known for being a quieter model, or insert acoustic padding around them. If you're having issues with floppy drive noises, I'll just tell you now, you're way behind in technology. A memory card reader is far faster, and is completely silent.

4.) Hard Drives - Hard drive noises are often difficult to suppress as well. The common hard drive noises are heard when the device is in use, opening a program, installing software, etc. Often the noises are the vibrations between your hard drive, and your hard drives mount. Cushioning your device with padding like silica gel can often reduce some of the noise. If you're hard drive is making unusual and highly noticeable noises while not in use, there's a chance it could be failing. Please consult a service technician if this is the case.

5.) Computer Case - This is often forgotten about. There are many types of cases engineered in all sorts of ways. You can even purchase a case with sound padding materials included in it. Consider the material of the case itself. An aluminium case can by flimsy, and can increase noise levels from its vibrations. A steel case however, is more solid, and is less prone to creating vibrations. The down side of a steel case would be its weight. Whichever case you decide to use, adding acoustic sound padding, silica gel, and foam blocks, will significantly reduce vibrations.

Building a quiet pc isn't for everyone. If you own a brand name computer, you'll likely have a hard time following the tips shown above. Modifications to a brand name computer could potentially void a warranty. I would suggest researching this first before using my tips. You must also remember that your computer must run at safe operating temperature to avoid any device malfunctions, or even failure. Testing and research is always recommended.

Thursday, March 25, 2010

Tips For The Multi-Display Life

Tips For The Multi-Display Life : A Tale Of Two Monitors

5:30 PM - March 18, 2010 - by Alan Henry

1. A Tale Of Two Monitors

Thinking about adding a second monitor to your desk? Here are reasons to take the plunge, and options to consider while shopping and setting it up.

At homes and in offices, we've started to notice more than one display per desk. Ask the users of these multi-monitor desks whether they'd be willing to return to a single monitor system, and they'll likely tell you they'll give up the second display when you pry it from their cold, dead hands. So, what's the appeal? Do multiple displays really make computer users more productive? If so, are three monitors better than two? Is there such a thing as too many displays, or too big of a display? Those are the questions we aim to answer in this article. Whether you already have a second monitor or you're considering picking one up to add to your workspace, there are a couple of things you should consider to get the most out of your multi-display setup. First, make sure to pick the right size and the right type of monitor for the work that you do. Second--make sure to use the right software to get the full benefit of having multiple displays connected to your computer. We'll help you determine both.

Why are size, type, and software so important? For example, if you're a PC gamer, you should have different priorities when buying a second monitor than a software developer or a Web designer. Similarly, a movie buff looking for a big display to replace the TV will be looking for something different than a PC gamer. Alternatively, if you're a laptop or netbook user, you may want a different kind of display than a desktop user, who might be looking to match the experience he gets on each monitor.

Over the course of this tutorial, we'll dive into those scenarios, and other considerations, such as making sure to take your workspace into account when shopping for a display. Also, we'll look at some popular multi-monitor configurations and displays, as well as some software options that will help you get the most out of your multi-monitor workstation.

Featured Post

Windows和Ubuntu双系统完全独立的安装方法

http://www.ubuntuhome.com/windows-and-ubuntu-install.html  | Ubuntu Home Posted by Snow on 2012/06/25 安装Windows和Ubuntu双系统时,很多人喜欢先安装windows,然...