Skip to content

Instantly share code, notes, and snippets.

View alex-ahumada's full-sized avatar
🏠
Working from home

Alex Ahumada alex-ahumada

🏠
Working from home
View GitHub Profile
@alex-ahumada
alex-ahumada / drupal-module-uninstall.php
Created June 21, 2018 11:42
Drupal module manual uninstall
// 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();
@alex-ahumada
alex-ahumada / .htaccess
Created March 13, 2018 13:26
Drupal 8 - Force redirect to https
<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>