Replies: 0
We are using WP 5.3.6.
We just enabled the SSL for the site. And following the steps here
https://websitesetup.org/http-to-https-wordpress/
I have setup the htaccess :
root@smsnewwebsite:/var/www/html# more .htaccess
# BEGIN WordPress
# The directives (lines) between BEGIN WordPress and END WordPress are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>
And force SSL in wp-config
define(‘FORCE_SSL_ADMIN’, true);
I have also done search and replace of all http:// to https://
And now all the pages on my site is not working. Even though the pages permalink shows https, the pages are inaccessible.
Please help.