change http to https force SSL with .htaccess

You can force an HTTPS connection on your website by adding these rules in your website’s .htaccess file: 1 2 3 RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://yourdomain.com/$1 [R=301,L] If your website is in a subfolder, use this code instead: 1 2 3 4 RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteCond %{REQUEST_URI} folder RewriteRule ^(.*)$ […]

Continue Reading

Fix Redundant Hostname warning by adding 301 Redirect Rule to .htaccess File

To access .htaccess file you should have access to your server either through ssh terminal command or any FTP client such as FileZilla. So, login to your server through ssh terminal command or FileZilla and locate the .htaccess file. The .htaccess file should be in the public_html folder or your website name folder. Create a […]

Continue Reading