The Guru42 Universe

Websites map and travel guide

User Tools

Site Tools


ssl

How to simply make the whole site HTTPS? https://drupal.stackexchange.com/questions/24072/how-to-simply-make-the-whole-site-https

If you want to redirect all of your pages to be forced to use SSL then add this to your .htaccess file.

# Redirect to HTTPS RewriteCond %{HTTPS} off RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

his should be placed directly after RewriteEngine on if you have no previous rewrites.

 #Redirect without WWW
 RewriteCond %{HTTP_HOST} .
 RewriteCond %{HTTP_HOST} !^www\. [NC]
 RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

 #Redirect to HTTPS
 RewriteCond %{HTTPS} off
 RewriteCond %{HTTP:X-Forwarded-Proto} !https
 RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] 

Then, in the settings.php: $base_url = 'https://www.yourdomainhere.com';

If you don't set up a redirect from http: to https: you may face a content duplication issue which affects SEO rankings.

To ensure you use a trusted SSL Certificate, Namecheap is offering 1-year free PositiveSSL limited to 1 cPanel primary domain for newly created account, and up to 49 new subdomains or addon domains per account. To install it, please visit the Namecheap SSL plugin.

Sign in to allow cPanel to download the list of SSL certificates you have in your account with Namecheap. You'll be able to install newly purchased certificates and install/renew already active ones.

Important: If an SSL certificate is already activated, you can install it through “Namecheap SSL” only if the domain (common name in CSR) is hosted in this cPanel. Installation of an already-active SSL will require reissue (activation from scratch).

https://www.namecheap.com/support/knowledgebase/article.aspx/9927/2218/

Why does writing to my own site give me:

You don't have permission to access /doku.php on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

Redirect http to https Redirect to HTTPS on Apache https://www.namecheap.com/support/knowledgebase/article.aspx/9821/38/redirect-to-https-on-apache

How to force HTTPS using .htaccess file in cPanel https://www.namecheap.com/support/knowledgebase/article.aspx/9770/38/how-to-force-https-using-htaccess-file-in-cpanel

It depends on whether you wish search engines to index your domain with http: or https://. Permanent redirects are good for SEO to show your domain name with https: in the list of websites.

RewriteEngine On RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} ^www\. [NC] RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC] RewriteRule ^ https://%1%{REQUEST_URI} [L,NE,R=301]

How do I redirect HTTP traffic to HTTPS? https://www.quora.com/How-do-I-redirect-HTTP-traffic-to-HTTPS

Overview: Site moves with URL changes https://support.google.com/webmasters/answer/6033049?utm_source=wmx_blog&utm_medium=referral&utm_campaign=tls_en_post

Secure your site with HTTPS https://support.google.com/webmasters/answer/6073543



The Guru 42 Universe is not run by a university professor with a team of editors and advisers working to developing a website. Tom Peracchio is simply someone who loves technology and history and is amazed by how little people know about the great minds in the world of technology.

Support the efforts of Tom in developing the Guru 42 Universe by your small donation here at Buy me a coffee


ssl.txt · Last modified: 2020/12/28 20:35 by theguru