How to redirect non – encrypted webpage to SSL
Version: 13.1b
Revision: 43 Build 12
How to redirect non – encrypted webpage to ssl encrypted webpage
Introduction: when I was repairing my website and directories, I’ve managed to re-direct all of my webpages to SSL encrypted pages. However, this techniques requires “htaccess” script for redirecting webpage. This will only work with a private IP address + SSL supported server.
Notes: for this to work, you must have a private IP address and a working SSL certificate. These can be obtained by the hosting provider.
Just talk to them and they will sort these out for you. When you’re done, you can read this tutorial…
1.] Execute your FTP application and log-in. Wait for the server to connect and navigate yourself to your WordPress directory. After that, you must look for your htaccess files and transfer them to your hard drive. When you’re done with this procedure, please execute your htaccess file (from your hard drive) and make sure that you have this or something that is / are similar.
<IfModule mod_rewrite.c>
RewriteEngine On
#Options +FollowSymlinks
RewriteBase /blog/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>
# END WordPress
2.] If you have the source, which is shown above, please add this below “# END WordPress” and save your work.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} wp-login.php
RewriteRule ^(.*)$ https://webpages.co.uk/blog/$1 [R,L]
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} wp-admin
RewriteRule ^(.*)$ https://webpages.co.uk/blog/$1 [R,L]
</IfModule>
Notes: if you want your entire blog to be encrypted, please use this source provided. But, you must alter “webpages.co.uk” with your own website / domain. Also, the default port is 80. But, if there is a problem with your ports, please consult your problems with your hosting provider.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} blog
RewriteRule ^(.*)$ https://webpages.co.uk/$1 [R,L]
</IfModule>
3.] Save your progress and delete your old htaccess file (which is from your server). When you’re done, please double check your server and upload your modified htaccess file. After that, you must clear your internet temporary files and check your website.
4.] Done!
Copyrighted by Lair360


