www/non-www URL Scheme is duplicated

Home Forums BulletProof Security Free www/non-www URL Scheme is duplicated

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #31280
    ivan
    Participant

    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!

    #31281
    AITpro Admin
    Keymaster

    I’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.

    #31282
    ivan
    Participant

    OK , how use the code for that site, I had only https://site.com?
    that the only operational https://site.com version and other versions: http://site.com + + http://www.site.com https://www.site.com will redirect to https://site.com

    #31283
    AITpro Admin
    Keymaster
    #31284
    ivan
    Participant

    I have WordPress General Settings:

    https://your-domain-name.com
    https://your-domain-name.com

    it is a problem?

    #31285
    AITpro Admin
    Keymaster

    That is correct.

    #31286
    ivan
    Participant

    Hi, It does not work at all.

    I tried it. I can send FTP access that we have to look?

    #31287
    AITpro Admin
    Keymaster

    Unfortunately 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.

    #31288
    ivan
    Participant

    Hi 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 to https://yoursite.com

    Because the code works like a duplication has been removed the code is correct ? , does not cause me a problem?

    #31289
    AITpro Admin
    Keymaster

    The code looks ok to me.

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.