Fastest redirection.


Wait a second, I thought of telling you something since last few days. I heard, you wanted a fast redirection from http to https (for example, “http://novicecamp.com will go to https://novicecamp.com), please read “From http to https” before you proceed. So, finally you will add these codes below to your .htaccess file, save the file, clear browser cache from all-time and if you are using any other caching mechanism (for example, a caching plugin, if this is a plugin for wordpress or something similar), please try to clear that cache too.

These are the codes below,

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
</IfModule>

Yes, now you have got the fastest redirection. So, now you start to add it to your .htaccess file, and I go see if there’s something in the kitchen. All the best.

(Please see related posts below)

Leave a Reply

Your email address will not be published. Required fields are marked *