Forum archive
Insecure site (sometimes) with SSL
I finish config SSL for my site. Pages are working well but i have problem with some pages as following
https://www.mysite.com/wp-admin/ , https://www.mysite.com/404 or pages in wp-admin such as https://www.mysite.com/wp-admin/index.php , etc. i met the message on browser "Your connection is not private" (the redirect to https://mysite.com/wp-admin/ is not work with https://www.mysite.com/wp-admin/ and http://www.mysite.com/wp-admin/ but it work when i put http://mysite.com/wp-admin/ in browser) . I set my site url in Wordpress setting : https://mysite.com and install SSL Really Simple Plugin to fix mixed content
I also try plugin Better Search Replace , WP Migrate DB to replace "https://www.mysite.com" , "http://mysite.com" and "http://www.mysite.com" to "https://mysite.com" in database but still not resolve above problem. Could you tell me some tip to fix it ?
In addition i visited some site as this site: https://hocvps.com and test by adding www or https as above
https://www.hocvps.com/wp-admin/index.php
http://www.hocvps.com/wp-admin/index.php
https://www.hocvps.com/wp-admin/
http://www.hocvps.com/wp-admin/
all pages were redirected to https://hocvps/not-found
so the second question is
how can i do that redirect all page in wp-admin to https://mysite.com/404 page for my website ?
Here is my file .htaccess
# END GOTMLS Patch to Block XMLRPC Access
# BEGIN rlrssslReallySimpleSSL rsssl_version[3.2.9]
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} !=on [NC]
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
</IfModule>
# END rlrssslReallySimpleSSL
# 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]
</IfModule>
# END WordPress
# Wordfence WAF
<IfModule mod_php5.c>
php_value auto_prepend_file '/var/www/wordpress/wordfence-waf.php'
</IfModule>
<IfModule mod_php7.c>
php_value auto_prepend_file '/var/www/wordpress/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
Thanks you
Thanks all . I resolved that problem. i removed SSL Really Simple Plugin and edit .htaccess file so all pages are working well. :)