Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
SSL - Https Redirection
Post Body

Hi all

I recently installed a SSL certificate for a website. I got everything redirected by basically just updating the site url from the Wordpress admin. However there is a strange issue so basically if I visit http://site.com or http://www.site.com or even http://site.com/page1 it correctly redirects to https version. However if i enter http://www.site.com/page1, it doesn't redirect to https version! What could be causing this? Thank you!

PS. The htaccess file has just the default rules that come with Wordpress:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

Solution: Updating this in case it helps someone. So basically I tried everything for almost a day but nothing worked except for this! It's the 2nd line (ENV:HTTPS) which is the key in getting it to work!

RewriteEngine On
RewriteCond %{ENV:HTTPS} !on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

Author
Account Strength
60%
Account Age
8 years
Verified Email
No
Verified Flair
No
Total Karma
2,382
Link Karma
1,651
Comment Karma
690
Profile updated: 1 week ago
Posts updated: 7 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
7 years ago