WordPress lighttpd的rewrite(伪静态)规则

几个wordpress博客搬家到vps上来了,需要在kloxo里添加lighttpd地址重写规则,这里记录一下规则:

url.rewrite = (
"^/(wp-.+).*/?" => "$0",
"^/(sitemap.xml)" => "$0",
"^/(xmlrpc.php)" => "$0",
"^/(.+)/?$" => "/index.php/$1"
)

在wordpress目录下的.htaccess文件内容如下:
# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

如果wordpress在子目录下安装,如domain.com/blog ,规则如下:

url.rewrite = (
"^/blog/(wp-.+).*/?" => "/$0",
"^/blog/(sitemap.xml)" => "/blog$0",
"^/blog/(xmlrpc.php)" => "/blog$0",
"^/blog/(.+)/?$" => "/blog/index.php/$1"
)

在wordpress目录下的.htaccess文件内容如下:
# BEGIN WordPress

RewriteEngine On
RewriteBase /blog/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]

# END WordPress

1 Comment Posted in 网站技术
记录一下最近生活

已经放假2周了,可我比平时上班还忙,主要是科研项目太过繁杂,有点超出我的能力——书到用时方恨少,关键是课题必须1月份拿出一篇论文…天天被这事困扰,搞定做什么事都没心情。

最近忙里偷闲在网上还做了几件事:

前几天godaddy域名促销,花了人民币8元购得com一枚;

昨日dreamhost空间促销,花了美元9.24购得无限空间流量空间一和net域名各一;

原来一网站是cn域名,注册商通知在2月之前必须提交个人信息身份证什么的,我当初是胡填的,再加早就对cnnic不满,对cn域名失去兴趣,于是乎,今天把那个网站整体搬迁,空间弄到vps上,域名301到gd注册的新域名上。

No Comments Posted in 个人生活
Google再见

Google昨日发表了打算撤离中国的声明:Official Google Blog: A new approach to China,并放弃过滤搜索结果。当然我巍巍天朝是不会屈服于任何压力的。所以Google撤离倒计时了,让我记住最后一刻墙内的谷歌:

谷歌走好,Google珍重!

No Comments Posted in 网络应用
Tagged
终于注册了DropBox

早就听说了dropbox,没细了解,以为仅仅是个网盘,还需要下载客户端…以前一直迷恋rapidshare,因为有了rs的白金账户其他网盘不入我法眼,所以一直没有注册。直到最近看了几则年底IT盘点新闻,都提到了它(如2010年预测:最受喜爱及最常用的IT产品09年IT业100件最重要大事)等,于是乎,跑到一个我喜欢的博客那里点击他的推介链接注册了账户。

用了几天感觉很不错,虽然上传速度不是那么快,但用起来很方便,最近我参与一项项目,需要在办公室和家里下资料写东西,有了dropbox再不必用优盘来回拷,也不必忍受被阉割常常无法连接的google docs了。当然dropbox还有许多功能尚待我去在使用中发现。


No Comments Posted in 网络应用
Tagged
读书笔记:《Preparing for Leadership 》一

最近下了一本书:《Preparing for Leadership:What It Takes》,有时间就看一点,今天看了几页,摘录一些我认为重要的:

Introduction
Leadership requires lifelong learning, flexibility to shift styles, and high levels of self-awareness and reflection.
The first step toward improving your own leadership skills is to assess your current situation.
what is leadership?

The great leaders of history come from every walk of life; what unites them is their ability to inspire others to achieve beyond what is expected.

Early research concluded that key leadership traits are self-confidence, intelligence,determination, integrity, and sociability.
…work on emotional intelligence, which stressed the importance of awareness of self and others and relationship skills as key components of leadership.

leadership was a process that focused on the performance of followers and also the development of followers to their fullest potential. …eadership helped organizations get the best results. …leadership has a greater influence on team effectiveness than the more traditional leadership approaches.  All of this work focuses on the group’s productivity and development rather than a single focus on the leader.
Transformational Leadership
Transformational leaders look at each member of their staff and help them grow and develop into leaders in their own right. (includes five main components necessary for a strong leader: Communicating Direction, Inspirational Motivation, Problem Resolution, Building the Team, and  Trust) (变革型领导理论把领导者和下属的角色相互联系起来,并试图在领导者与下属之间创造出一种能提高双方动力和品德水平的过程。拥有变革型领导力的领导者通过自身的行为表率,对下属需求的关心来优化组织内的成员互动。同时通过对组织愿景的共同创造和宣扬,在组织内营造起变革的氛围,在富有效率地完成组织目标的过程中推动组织的适应性变革。出自(Transformational Leadership
Trust
honest, forward-looking, competent and inspiring
a team that operates with trust as its  foundation is able to provide a sense of reliability and confidence that other teams lack.
Communicating Direction
The best leaders not only set goals and milestones for themselves and their teams they also communicate these goals to all the stakeholders.
Analyze your own language to make your communications effective. An optimistic explanatory( 解释的;说明的 ) style should be used for both adverse and positive events.
As a leader, try to find permanent and universal causes for good events and temporary,specific causes for misfortune.
Through continuous communication, leaders monitor goals, provide feedback that is both positive and constructive, and empower employees while accomplishing organizational goals.
Inspirational Motivation
Leaders empower followers and pay attention to their individual needs and personal development, helping associates to develop their own leadership potential.
Problem Resolution
Strong leaders can avoid or resolve problems because they have the ability to challenge their own thinking as well as that of the team, to develop new ideas, interesting solutions, and innovative approaches.
This can take the form of talking with senior people in the organization to “clear the way” for involvement with another department.
Building the Team
make sure that you include individuals with the skills you need for the job but also with the ability to work together with different people. A leader will also help the team develop key relationships and manage any conflicts.
Leaders:

  • 1. Serve as a Role Model
  • 2. Communicate Direction
  • 3. Build the Team
  • 4. Inspire Others, Motivate,Influence
  • 5. Solve Problems and Get Results

No Comments Posted in 读书笔记
Hello world!

这是我的第N个博客了。

先说说这个博客的情况:空间用的是美国的vps(虽然还在摸索中…),域名0278.net托管于enom(正在向godaddy转移中…),所以不管他ccav还是工性部,奈何不了我了(虽然我遵纪守法…),不知我该得意还是悲哀。

在再说我的博客史:

最初知道博客、写博客是受木子美老师影响,最初在blogcn.com。大概是03年左右吧;

再后来,自己买了虎翼网空间,用了虎翼的二级域名51.net,自己架了wordpress,坚持了2年;

到2006年,自己做了个小网站,在虎翼博客的博客就慢慢荒芜,就再没续费,被关了;2007年又申请了免费cn域名,做了个博客rapidsearch.cn至今存活,不过也没心情更新。

这个博客决定认真坚持下去。不管几天写一篇、也不期望被搜索引擎收录或有人关注,只要记录自己的工作、学习、生活就可以了。或许没人关注了才会没有压力随性而写。

1 Comment Posted in 个人生活