1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Redirect to https only if it is working?

Discussion in 'Apache' started by postcd, Sep 22, 2017.

  1. #1

    can you share a method (if exist) on how to redirect HTTP:// site to HTTPS:// but only if the SSL certificate for that domain is signed/working?

    Because i do not want to force SSL while i think SSL may stop working (expired certificate or such). I am using Apache, PHP 5.x, SuPHP
    postcd, Sep 22, 2017 IP
  2. thewolfie

    thewolfie Greenhorn

    Likes Received:
    Best Answers:
    Trophy Points:
    It cannot be achieved with mod rewrite (99.9% of the times the redirects are done using rewrite). A plugin for your website might be able to do that for you, but I doubt any will exist.

    I suggest you just put a monitor for the ssl certificate, check this article out https://geekflare.com/monitor-ssl-certificate-expiry/
    thewolfie, Oct 12, 2017 at 3:41 AM IP