Home › Forums › BulletProof Security Free › www/non-www URL Scheme is duplicated
- This topic has 9 replies, 2 voices, and was last updated 7 years, 5 months ago by AITpro Admin.
-
AuthorPosts
-
ivanParticipant
Hi, i use BPS free version,
I have a problem with duplication. (i install letsecnrypt and set up https)
In WordPress settings /wp-admin/options-general.php i have setup https url according to instructions https://make.wordpress.org/support/user-manual/web-publishing/https-for-wordpress/
but I still persists duplication.
I have duplicate:https://www + https://
How do I set the preferred version at https: // (non www) from custom code?
I found these examples, and tried but did not work properly.
http://forum.ait-pro.com/forums/topic/wordpress-ssl-htaccess-code-rewrite-ssl-rewritecond-server_port/#post-7233
Thx for help!AITpro AdminKeymasterI’m not sure what you mean by “duplicated”? Normally you would just do the steps here: http://forum.ait-pro.com/forums/topic/wordpress-ssl-htaccess-code-rewrite-ssl-rewritecond-server_port/#post-7233 and choose whichever HTTPS/SSL htaccess code that you want to use. Double check that you are doing all of the steps correctly. Let’s Encrypt only offers SSL Certificates as far as I know. So make sure your domain is correct in your SSL Certificate. Your actual website domain name and your domain name in your SSL Certificate must match exactly.
ivanParticipantOK , how use the code for that site, I had only
https://site.com
?
that the only operationalhttps://site.com
version and other versions:http://site.com + + http://www.site.com https://www.site.com
will redirect tohttps://site.com
AITpro AdminKeymasterJust do the steps here: http://forum.ait-pro.com/forums/topic/wordpress-ssl-htaccess-code-rewrite-ssl-rewritecond-server_port/#post-7233 That’s it and nothing else is needed.
ivanParticipantI have WordPress General Settings:
https://your-domain-name.com https://your-domain-name.com
it is a problem?
AITpro AdminKeymasterThat is correct.
ivanParticipantHi, It does not work at all.
I tried it. I can send FTP access that we have to look?
AITpro AdminKeymasterUnfortunately we are not authorized or allowed to do that for a BPS free plugin problem. We only offer that type of technical support for BPS Pro customers. This problem does not sound like it is directly related to or caused by BPS. This problem falls under a host/host support issue/problem. Please contact your web host support folks for assistance.
ivanParticipantHi man it works this code:
# CUSTOM CODE WP REWRITE LOOP START RewriteEngine on RewriteCond %{HTTP_HOST} ^www\.yoursite\.com [NC] RewriteRule ^(.*)$ http://yoursite.com/$1 [L,R=301] RewriteCond %{HTTP:X-Forwarded-Proto} !=https RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
This code is redirect OK
:
http://yoursite.com + http://www.site.com + https://www.yoursite.com
will redirect tohttps://yoursite.com
Because the code works like a duplication has been removed the code is correct ? , does not cause me a problem?
AITpro AdminKeymasterThe code looks ok to me.
-
AuthorPosts
- You must be logged in to reply to this topic.