This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
# Redirect to https | |
RewriteCond %{HTTPS} off | |
RewriteCond %{HTTP:X-Forwarded-Proto} !https | |
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Run with drush eval | |
// Read config | |
$module_data = \Drupal::config('core.extension')->get('module'); | |
// Unset the modules you do not need. | |
unset($module_data[‘your_module_name’]); | |
// Rewrite config | |
\Drupal::configFactory()->getEditable('core.extension')->set('module', $module_data)->save(); |