From a336f21a3fac746f72428a39c9c8528d0a5256f4 Mon Sep 17 00:00:00 2001 From: Muhammad Dyas Yaskur Date: Mon, 17 Oct 2022 05:04:13 +0700 Subject: [PATCH] fix no rewrite on --- lib/module.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/module.js b/lib/module.js index e578399..fe8e058 100644 --- a/lib/module.js +++ b/lib/module.js @@ -38,7 +38,7 @@ module.exports.meta = require('../package.json') function createHtaccess(options) { var htaccessConfig = '' - if (options.https && !options.redirect) { + if (options.https || !options.redirect) { htaccessConfig += 'RewriteEngine On\n' } if (options.https) {