wordpress 迁移 typecho
1、按照官方的步骤进行操作
http://docs.typecho.org/plugins/wordpress-to-typecho
2、拷贝wordpress的附件wp-content/uploads到 typecho 的 usr/uploads
3、更改数据库中的附件链接
use typecho;
update typecho_contents set text=replace(text,'wp-content/uploads','usr/uploads');
4、nginx静态化
location / {
if (-f $request_filename/index.html){
rewrite (.*) $1/index.html break;
}
if (-f $request_filename/index.php){
rewrite (.*) $1/index.php;
}
if (!-f $request_filename){
rewrite (.*) /index.php;
}
}