force https 301 redirect using htaccess
To force your website with SSL using htaccess and mod_rewrite, use the following rule in the website’s .htaccess.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourwebsite\.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://yourwebsite.com/$1 [R=301,L]
If it’s a subdomain, use this.
RewriteEngine OnRewriteCond %{SERVER_PORT} 80RewriteCond %{REQUEST_URI} subRewriteRule ^(.*)$ https://yourwebsite.com/sub/$1 [R=301,L]
Note: Replace yourwebsite.com with the actual domain name and sub with actual subdomain.
cPanel backup error mysqldump: Got error: 1049: Unknown database when selecting the database Install Malayalam fonts in Ubuntu