- ๐ Hi, Iโm @quickfgit
- ๐ Iโm interested in Technology
- ๐ฑ Iโm currently learning line and graph
- ๐ซ How to reach me ohh no
Usage
- Trim www from your domain name.
- Redirect www to non-www to fix Google Canonical issues.
Add this piece of code to your .htaccess file.
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www. [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Add this piece of code to your .htaccess file. RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]