Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Base domain in email messages [RESOLVED]

JanKrohnJanKrohn Vaals New
edited January 2018 in Vanilla 2.0 - 2.8

Hi,
Is there any known way to set the base domain for links in outgoing email messages?
Right now, all links point back to http://example.com whereas I'd prefer for the links to point to https://www.example.com

Comments

  • Options
    vrijvlindervrijvlinder Papillon-Sauvage MVP

    You set that up with your host company and or where you got your domain. SSL certificates are obtained from your host as well. Ask them.

  • Options

    @vrijvlinder said:
    You set that up with your host company and or where you got your domain. SSL certificates are obtained from your host as well. Ask them.

    I don't think that is the question he is asking. I think he asking how to set the scheme/protocol in vanilla so tha the link are transpire to the email notifications.

    grep is your friend.

  • Options

    Exactly. Right now, when someone clicks through an email link, they come out on the non secure version of the site.

  • Options

    are you forcing https currently?

    grep is your friend.

  • Options
    x00x00 MVP
    edited January 2018

    the scheme is general taken from the envirment that sends the notification. if the person triggering the notification accessed the site over http the email will be http not https

    grep is your friend.

  • Options

    Thanks! Solved by adding the following to htaccess:

    RewriteEngine On
    RewriteCond %{HTTPS} !=on
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Sign In or Register to comment.