在typecho0.5版本中,我们加入了一个十分有利于SEO的特性,那就是灵活的自定义链接功能。
在我们开启rewrite功能之后,在以往的版本中, 只能使用以下四种风格:
默认风格 /archives/{cid}/
wordpress风格 /archives/{slug}.html
按日期归档 /archives/{year}/{month}/{day}/{slug}.html
按分类归档 /{category}/{slug}.html
现在,我们提供了自定义组合的功能,可用参数如下:
可用参数:{cid} 日志ID、{slug} 日志缩略名、{category} 分类、{year} 年、{month} 月、{day} 日
实际上,参数还在不断丰富中,用户可以自由组合出自己想要的永久链接形式。例如:
/{category}/{year} /{month}/{day} /{slug}.html
除了链接,独立页面后缀也是可以设置的,目前提供的是三种:
.html .htm .php
启用这个功能后,选择html,日志的地址就可以类似:
http://www.typecho.net/example.html
10 Comments »
February 24th, 2009 23:54
当前暂无评论
添加新评论
这两句话我感觉都没必要不用说就知道没评论和这里是添加评论的
February 25th, 2009 19:47
加油
February 26th, 2009 14:27
四个四个人文
February 26th, 2009 20:28
原来的WP用的是domain/{year}/{month}/{slug}.html
看来还是等0.5之后在导入吧
February 27th, 2009 19:49
good.
February 28th, 2009 15:12
@dimlau
其实0.3就可以实现了,只是设置部分没有做而已,呵呵
September 17th, 2009 17:00
iis的rewrite规则应该怎么写呢。
December 11th, 2009 16:00
重写功能检测失败, 请检查你的服务器设置
如果你仍然想启用此功能, 请点击这里
服务器是LiteSpeed Web Server的,没法使用啊。
December 11th, 2009 17:25
可以了,还要自己上传.htaccess,没法自己生成啊。
December 12th, 2009 02:24
权限不对~
Leave a Comment