SEO与引流

wordpress http301重定向https,过百度https认证的方法

WordPress 在Apache环境下的http301重定向https。

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://你的域名/$1 [R=301,L]

RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

WordPress 在Nginx环境下的http301重定向https。(修改Nginx的配置稳定即可)

server
{
listen 80;
server_name abc.com;
rewrite ^(.*) https://www.lulinling.com$1 permanent;
}

http跳转https   http跳转到https         http 301到 https  wordpress过百度HTTPS认证

最后….如果你使用宝塔:

如果使用宝塔
直接开启强制跳转即可