Author Topic: ssl expire  (Read 353 times)

0 Members and 1 Guest are viewing this topic.

Offline
**
Re: ssl expire
« Reply #15 on: October 10, 2018, 11:25:00 PM »

But you can add this to each domain in vhost file.

<IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteCond %{HTTPS} off
   RewriteRule ^(.*)$ https://yourdomain.com$1 [R=301,L]
   </IfModule>

Is it possible and how to add this to the vhost template instead of each domain?