Hi, I’ve created the cert in my cPanel, and in config changed the site_value to https and it has converted all the old http shortened links to HTTPS in yourls admin panel. But how can I redirect the old http links traffic to HTTPS?
Thanks
EDIT:
Found the solution
# BEGIN YOURLS
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} !=on //Added this line//
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ /yourls-loader.php [L]
</IfModule>
# END YOURLS
<Files 403.shtml>
order allow,deny
allow from all
</Files>