道招网正式开启https
如果您发现本文排版有问题,可以先点击下面的链接切换至老版进行查看!!!
道招网正式开启https


update wp_posts set post_content = replace(post_content, 'http://www.daozhao.com','https://www.daozhao.com');
update wp_postmeta set meta_value = replace(meta_value, 'http://www.daozhao.com','https://www.daozhao.com');
四、登录和后台强制开启ssl,修改根目录的WP-config.php文件,直接在文件末尾加入以下两行代码
/* 强制后台和登录使用 SSL */
define('FORCE_SSL_LOGIN', true);
define('FORCE_SSL_ADMIN', true);
五、让原来的页面直接跳转至https页面
修改根目录的.htaccess文件
# BEGIN WordPress
<ifmodule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} !^on$ [NC]
RewriteRule (.*) https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</ifmodule>
# END WordPress
- 分类:
- WordPress
更新时间:
相关文章
curl获取https开头的url的内容
平时我们用curl一般都获取http页面的内容,代码如下 $theurl= "http://www.xx.com"; $_data = array( 'clie 阅读更多…
nginx开启https parameter requires ngx_http_ssl_module in /usr/local/nginx/conf/nginx.conf
安装nginx,一般是安装在/usr/local/nginx nginx基本操作 cd /usr/local/nginx/sbin 启动 ./nginx 关闭 ./ngin 阅读更多…
amh.sh免费泛域名https证书 自动续期
自己的网站一直使用的https,用ssl证书就是在腾讯云免费申请的,有限期一年,过期了可以再次申请。腾讯云说是有50个免费名额,个人觉得还是够用的。 要说缺点的话也是有的 不能自 阅读更多…
使用app的华为应用内支付服务还是小心为上,2023年了还有人在支付场景使用http。。。
近期查看邮件的时候发现华为开发者联盟发的一封邮件,大致意思就是出于安全考虑,将于2023年10月1日全面限制应用内支付服务使用HTTP回调地址了。 众所周知HTTP协议以明文方式发送内容,不提供 阅读更多…
Charles抓取https请求unknown?赶紧换Proxyman吧
前几年使用 Charles 的时候发现抓取https报文很容易出现结果unknown的情况,其实就是因为无法解密出https这类加密请求,一般都要通过借助Charles自己的证书来解决。 网上包 阅读更多…
nginx开启https parameter requires ngx_http_ssl_module in /usr/local/nginx/conf/nginx.conf
安装nginx,一般是安装在/usr/local/nginx nginx基本操作 cd /usr/local/nginx/sbin 启动 ./nginx 关闭 ./ngin 阅读更多…