Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Forcing SSL on ALL site pages not working

$
0
0

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.

  • This topic was modified 29 minutes ago by karishma01.
  • This topic was modified 14 minutes ago by karishma01.

Viewing all articles
Browse latest Browse all 59525

Trending Articles