Skip to content
  • Pricing
  • Knowledge base
  • Support
  • Pricing
  • Knowledge base
  • Support
  • > Get Pro <
  • Pricing
  • Knowledge base
  • Support
  • Account area
  • > Get Pro <
  • Pricing
  • Knowledge base
  • Support
  • Account area
Login
Log out
Get PRO

Home » Redirect rules in Nginx

In this article

General

Categories

  • Let's Encrypt
  • Common issues & warnings
  • Mixed Content
  • Security Headers
  • Security Features
  • Really Simple SSL Pro
  • Instructions
  • Definitions
  • F.A.Q
  • Blog

Most popular

Passkeys: no need for Limit Login Attempts?

Configuring Really Simple Security with WP-CLI

How to Fix The “Link you followed has Expired” error on WordPress

404 not found errors

Protecting site visitors with Security Headers

Hardening your website’s security

Login protection as essential security

Why WordPress is (in)secure

Staying ahead of vulnerabilities

Password has been found in a data breach

Preventing the use of compromised passwords

Our journey towards Really Simple Security

Redirect rules in Nginx

  • Leon Wimmenhoeve
  • December 5, 2015
  • 3:26 pm

Use the following to redirect to https on nginx.

server {
listen 80;
server_name my-domain.com;
return 301 https://$server_name$request_uri;
}

  • Go Pro
Simple and Performant Security.
Easily improve site security with WordPress Hardening, Two-Factor Authentication (2FA), Login Protection, Vulnerability Detection and SSL certificate generation.
Get Secure

Join our mailing list - 6 Tips & Tricks in your inbox over the next days!

Plugins

  • Really Simple Security
  • Complianz
  • SimplyBook.me

© Really Simple Plugins
CoC 70461155
Kalmarweg 14-5
9723 JG, Groningen (NL)

Wordpress Linkedin Github

Get Started

  • Pricing
  • Knowledge Base
  • Support
  • F.A.Q
  • Account
  • Become an Affiliate

About

  • About Us
  • Privacy Statement
  • Cookie Policy
  • Terms of Use
  • Coordinated Vulnerability Disclosure

Popular articles

  • Why WordPress is (in)secure
  • Always be ahead of vulnerabilities
  • Harden your website’s security
  • Login protection as essential security
  • Protect site visitors with Security Headers
  • Enable an efficient and performant firewall