Results 1 to 3 of 3

Thread: HTTPS handling/inconsistencies

  1. #1
    tessisamess is offline Junior Member
    Join Date
    Apr 2023
    Location
    Springfield, MO
    Posts
    2

    Default HTTPS handling/inconsistencies

    I've purchased my domain name directly from Altervista and have enabled HTTPS, but I get inconsistent handling of the HTTPS. My site seems to only utilize the HTTPS service if the URL uses both HTTPS and WWW in the URL; otherwise it doesn't display SSL verification. Is this the correct handling of the HTTPS service Altervista offers?

    Utilizes HTTPS:
    https://www.tessisamess.net/
    https://www.tessisamess.altervista.org/

    Does not utilize HTTPS:
    https://tessisamess.net/
    https://tessisamess.altervista.org/

    Does not forward to HTTPS:
    http://www.tessisamess.net/
    http://tessisamess.net/
    http://www.tessisamess.altervista.org/
    http://tessisamess.altervista.org/

    Related: Are we allowed to use .htaccess to force correct HTTPS forwarding? When I tried to go that route, the site no longer loaded due to too many redirect attempts.

  2. #2
    alemoppo is offline AlterVista Staff
    Join Date
    Feb 2010
    Location
    IT
    Posts
    688

    Default

    HTTPS in only supported with "www".

    You can force HTTPS with .htaccess, for example:

    Code:
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^www\.tessisamess\.altervista\.org$
    RewriteRule (.*) https://www\.tessisamess\.it/$1 [R=301,L]
    RewriteCond %{HTTP_HOST} ^tessisamess\.altervista\.org$
    RewriteRule (.*) https://www\.tessisamess\.it/$1 [R=301,L]
    Let me know if you have any problem.

    Bye!

  3. #3
    tessisamess is offline Junior Member
    Join Date
    Apr 2023
    Location
    Springfield, MO
    Posts
    2

    Default

    Great, thank you so much for the clarification!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO