HTTPS in wordpress

2

I bought a certificate and passed my url from http to https on wordpress. I used the following ways:

  

Go to "Settings" of your WordPress, under "General" change the "Address   WordPress (URL) "and" Site Address (URL) "to   " link ", if you do not use the WWW only   " link ", after saving you may lose access   temporarily to your WordPress, do nothing, just continue.

Then in wp-config.php :

define('FORCE_SSL_CONTENT', true);
define('FORCE_SSL_ADMIN', true);

And finally in the file htaccess :

# BEGIN SSL
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</IfModule>
# END SSL

Many pages are redirected from http to https, but one of those that does not redirect is the 404 error page and sometimes user errors are logged, and when I refresh the page it is gone, so it refreshes again he is back logged in.

Does anyone know of a way to redirect everyone, without having problems like the ones that are happening on my site?

    
asked by anonymous 24.07.2016 / 00:52

1 answer

1

You can try to add in .htaccess :

RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^/(.*) https://www.seudominio.com/$1 [NC,R,L]

    
04.08.2016 / 22:45