证书类
申请通配符证书
-
certbot
- 其中,申请到的四个pem文件在README里都有说明,fullchain.pem即我们常用的证书,private.pem是密钥,其他两个暂时还没有用到。
- 存放路径 /etc/letsencrypt/live/
- acme.sh
Wordpress主页加证书之后重定向次数过多 参考资料
修改wp-include下的/template-loader.php文件:
if ( defined(‘WP_USE_THEMES’) && WP_USE_THEMES )
do_action(‘template_redirect’);
注释以上二行即可。
WordPress迁移
修改域名
UPDATE wp_options SET option_value = replace(option_value, 'old_domain','new_domain') ;
UPDATE wp_posts SET post_content = replace(post_content, 'old_domain','new_domain') ;
UPDATE wp_comments SET comment_content = replace(comment_content, 'old_domain', 'new_domain') ;
UPDATE wp_comments SET comment_author_url = replace(comment_author_url, 'old_domain', 'new_domain') ;
数据库
修改数据库字符集
alter database
db_name
character set utf8;