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

setting multiple PHP versions on one account htaccess

Below is an example of having multiple directory locations using different versions on PHP. The following example shows the “public_html” is using PHP 5.4, the “public_html/othersite” using PHP 5.2 and so forth. public_html 5.4 public_html/othersite: 5.2 public_html/someothersite: 5.3 public_html/someothersite/yetanother: 5.4 Using the Default PHP version To use the system default PHP, use the following in […]

Continue Reading