09-22-2019, 04:35 PM
Why use a plug-in at all? Navigate to the WP root directory and enable dotfiles if not done already. Then you'll see there's an htaccess file. It comes with WP installation and add the following five lines of code:
That's it. You'll see the magic of redirection at the cost of no security issues or any excessive resource usage.
Regards,
Code: (Select All)
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://yourdomain.com/$1 [R,L]
</IfModule>
That's it. You'll see the magic of redirection at the cost of no security issues or any excessive resource usage.
Regards,