国外设计欣赏网站 - DOOOOR.com

标题: Drupal7、6移除页面路径别名原始路径模块GlobalRedirect [打印本页]

作者: howfar    时间: 1-27-2012 04:21
标题: Drupal7、6移除页面路径别名原始路径模块GlobalRedirect
GlobalRedirect是一个简单易懂模块,这个模块在页面拥有路径别名的情况下,移除该页面的原始路径,这样可以减少网站的重复内容页面,有利于SEO优化., `! B4 l1 h# |* S# r/ r
+ V: \$ H& J  Y/ O8 O
下载地址:http://drupal.org/project/globalredirect
: \( L" V+ s5 T8 f1 w; EWhat?

GlobalRedirect is a simple module which…

Why?

Once enabled, an alias provides a nice clean URL for a path on a site. However Drupal does not remove the old path (eg node/1234). The problem is that you now have two URLs representing the same content. This is dangerous territory for duplicate pages which can get you sandboxed by the search engines!

How?

This module uses hook_init to interrupt the page load and action the alias lookups. If any of the above rules apply then the appropriate action is taken. If no rules apply then the page load continues uninterrupted. An example of this in use is on the site it was developed for.http://www.sportbusiness.com/node/160559 will redirect tohttp://www.sportbusiness.com/news/160559/lagardere-sets-up-sports-division due to the alias setup on this site.

Anything I Should Know?

As with most modules - there are often a few things you should be aware of before going ahead.

Project Information5 c; x: Y! [, T" W, I2 d
/ @- t! y! v; A
) ]: J  A, u6 L$ l
* Q) Z8 t( V! y5 r8 q& k. d1 i





欢迎光临 国外设计欣赏网站 - DOOOOR.com (https://www.doooor.com/) Powered by Discuz! X3.4