Skip to content

Instantly share code, notes, and snippets.

View jigarius's full-sized avatar
🐢
Through failure one finds the path to success

Jigarius jigarius

🐢
Through failure one finds the path to success
View GitHub Profile
@jigarius
jigarius / settings.https_redirect.php
Last active July 27, 2023 18:09
Drupal Force HTTPS Redirect with PHP
<?php
/**
* @file
* Always redirect to HTTPS.
*/
if (
php_sapi_name() !== 'cli' &&
strtoupper($_SERVER['HTTPS'] ?? '') !== 'ON' &&
@jigarius
jigarius / services.local.yml
Last active March 25, 2020 19:01
Drupal 8 development settings.
# Local development services.
#
# To activate this feature, follow the instructions at the top of the
# 'example.settings.local.php' file, which sits next to this file.
parameters:
http.response.debug_cacheability_headers: true
twig.config:
auto_reload: true
cache: true
debug: true