How to Force HTTPS on Your Website Print

  • 0

Redirect all traffic to HTTPS:

Method 1: Plesk (Recommended)

1. Go to Websites & Domains

2. Click "Hosting Settings"

3. Enable "Permanent SEO-safe 301 redirect from HTTP to HTTPS"

4. Click OK

Method 2: .htaccess (Apache/Linux)

```

RewriteEngine On

RewriteCond %{HTTPS} off

RewriteRule ^(.)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

```

Method 3: web.config (IIS/Windows)

```xml

```

WordPress:

  • Update WordPress Address and Site Address to https://
  • Install Really Simple SSL plugin for easy setup

Important: Ensure SSL certificate is installed and working before forcing HTTPS.


Was this answer helpful?

« Back