I just updated my WordPress site to a full SSL certificate. Everything is working as expected. Only 1 issue I can't solve.
After the update I noticed the homepage is being redirected as expected but subpages are all redirected to the homepage as well.
http://www.example.com
is being redirected tohttps://www.example.com
http://example.com
is being redirected tohttps://www.example.com
http://www.example.com/page
is being redirected tohttps://www.example.com
(I would like this to behttps://www.example.com/page
)
I am using my .htaccess
file to get this to work. I think I am missing something.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^ https://www.example.com%{REQUEST_URI} [NE,L,R]
</IfModule>