I have a Wordpress website on apache server with Cloudflare SSL,
http://website.com is redirected to https://website.com (FINE)
website.com is redirected to htts://website.com (FINE)
http://www.website.com Shows 522 Error
www.website.com Shows 522 Error
So, it's only www. version issue.
I set up several different wordpress websites on same server with same cloudflare ssl and neither one had this kind of issue.
I also used wordpress SSL plugin + SSL insecure content.
When I used cloudflare ssl checker tool, it shows that there's no ssl cert. and shows errors... even though there 100% is and when you open https://website.com green lock shows.
My .htaccess file looks like this:
# BEGIN 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>
# END WordPress
# Wordfence WAF
<IfModule mod_php5.c>
php_value auto_prepend_file '/var/www/pathtofolder/wordfence-waf.php'
</IfModule>
<IfModule mod_php7.c>
php_value auto_prepend_file '/var/www/pathtofolder/wordfence-waf.php'
</IfModule>
<Files ".user.ini">
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
</Files>
# END Wordfence WAF
Aucun commentaire:
Enregistrer un commentaire