Free WordPress Themes Inspired by Windows Phone 7

一月 4th, 2012 作者:dreamer | 没有评论 | 分类:wordpress theme

Today while browsing few WordPress theme directories i found not less than three free WordPress themes which are inspired by the metro design of the Microsoft’s Windows Phone 7. 阅读全文

标签: ,

Nginx rewrite rule for WordPress Buddypress

一月 3rd, 2012 作者:dreamer | 1条评论 | 分类:Server Configuration

前两天,因为nginx服务器配置Buddypress不成功,在网上搜索nginx rule for buddypress找见下面这篇博文,因为当时是当做参考,觉得还有用,就顺手转载到这里,并且在文章末尾写上了

via:http://k-noo.net/2010/07/nginx-rewrite-rule-for-wordpress-buddypress/247

一般情况下我是会按照 创作共用之非署名保持一致的原创转载别人的文章的,但是国际友人的名字有时候搞不清楚,就直接链接到原文了。

但是今天看到作者过来留言说偷了人家的文章,会对人家博客在搜索引擎中的权重造成影响,实际上给别人加链接只会对SEO更友好,本着尊重版权,尊重国际友人的原则,决定把原文内容删除,只引用下面一段代码:

if (!-e $request_filename) {
rewrite ^/wordpress/(.+)$ /wordpress/index.php?p=$1 last;
}

关于其他更多内容请直接到原文浏览。

标签: , ,

wordpress多站点nginx配置

一月 2nd, 2012 作者:dreamer | 没有评论 | 分类:Server Configuration

wordpress多站点nginx配置:

server {
server_name mysite.com;

root /path/to/blog;

index index.php;

error_page 404 = @wordpress;
log_not_found off;

location ^~ /files/ {
rewrite /files/(.+) /wp-includes/ms-files.php?file=$1 last;
}

location @wordpress {
fastcgi_pass ...;
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_NAME /index.php;
}

location ~ \.php$ {
try_files $uri @wordpress;
fastcgi_index index.php;
fastcgi_pass ...;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}

location ^~ /blogs.dir/ {
internal;
root /path/to/blog/wp-content;
}
}

如果使用lnmp之类的环境包,只需在mysite.com.conf中插入下面这段代码即可

location ^~ /blogs.dir/ {
internal;
root /path/to/blog/wp-content;
}

标签:

WordPress 缓存插件性能对比

十二月 30th, 2011 作者:dreamer | 没有评论 | 分类:wordpress optimization

我想我应该收回之前文章 《如果要把网站做大,切忌 WordPress 的滥用》 的观点,虽然原生态的 WordPress 效率实在底下,但是 WordPress 提供了很多插件,国外服务器领域里也有很多开源的缓存软件,这几天在 Jerry 的帮忙下,萝卜网的服务器用上了 Varnish 缓存加速,现在每天轻松应付流量,系统的负载也不再升高,呵呵。这里贴一篇国外高手的文章,一些主流的 WordPress 缓存插件,以及和用上 Varnish 的 WordPress 性能的对比。 阅读全文

标签:

让WordPress达到最高性能的13个优化技巧

十二月 30th, 2011 作者:dreamer | 没有评论 | 分类:wordpress optimization

性能是任何成功网站的一个关键因素。越来越多的人选择使用WordPress搭建个人博客、CMS内容展示或是企业网站,但可能由于高流量或一些未知的原因,导致你的WordPress性能越来越低,尤其对于大多数主机质量一般流量却很高的个人站长来说。 阅读全文

标签:

WordPress自动保存占用ID的问题

十二月 15th, 2011 作者:dreamer | 没有评论 | 分类:wordpress plugin

WordPress在发布日志(文章)时,有一个AutoSave的功能,主要防止断电等情况。但是实际上,我们并不需要这个功能,它影响插件的速度,而且这个功能占用文章的ID。也就是说,你发布了一篇文章,ID因该是1,但因为你多次修改,所以ID很可能会很大。 阅读全文

如何降低网站占用过高cpu资源

十二月 12th, 2011 作者:dreamer | 没有评论 | 分类:Server Configuration

如何减少网站主机的资源占用?这个问题是每个独立博客站长都要关注和学习的。网上搜集资料,整理这篇日志,下面是虚拟主机资源占用过多的一些原因。

一 搜索引擎蜘蛛造成cpu占用过高
如果你的网站是英文站,那么你需要把百度,搜狗等国内蜘蛛屏蔽掉,他们也会爬英文站。如果你的内容多,即使没人访问,你的网站也会被soso蜘蛛、采集爬虫给拖死了。所以经常看主机日志,发现不正常的访问就及时禁止。 阅读全文

WordPress Optimization Bible

十二月 12th, 2011 作者:dreamer | 1条评论 | 分类:wordpress optimization

This WordPress optimization tutorial is the most comprehensive guide to WordPress optimization created with the intention of helping you troubleshoot performance related issues and provide you with guidelines on how to speed up your WordPress site..

If you ever experienced slow WordPress admin panel, “MySQL server has gone away” message, pages taking forever to load or you want to prepare your site for a major increase in traffic (for example Digg front page) this is the guide for you. 阅读全文

WordPress SEO Plugin by Yoast

十二月 12th, 2011 作者:dreamer | 没有评论 | 分类:wordpress seo

WordPress SEO is the most complete WordPress SEO plugin that exists today for WordPress.org users. It incorporates everything from a snippet preview and page analysis functionality that helps you optimize your pages content, images titles, meta descriptions and more to XML sitemaps, and loads of optimization options in between.       DOWNLOAD 阅读全文

40 WordPress Optimisation tips

十二月 12th, 2011 作者:dreamer | 没有评论 | 分类:wordpress optimization

I presented on A4UExpo Europe yesterday on WordPress Optimisation, doing 40 tips in 40 minutes. Here are the slides:

via:http://yoast.com/40-wordpress-optimisation-tips/