Skip to content

Instantly share code, notes, and snippets.

View n-kort's full-sized avatar
😶‍🌫️

Nicolas Kort n-kort

😶‍🌫️
View GitHub Profile
@n-kort
n-kort / wp-config.php
Created April 24, 2021 11:31
Dynamic WordPress site/home URL
<?php
define('SP_REQUEST_URL', ($_SERVER['HTTPS'] ? 'https://' : 'http://') . $_SERVER['HTTP_HOST']);
define('WP_SITEURL', SP_REQUEST_URL);
define('WP_HOME', SP_REQUEST_URL);

Keybase proof

I hereby claim:

  • I am n-kort on github.
  • I am nkort (https://keybase.io/nkort) on keybase.
  • I have a public key ASB7t_e02D5oE0K8rd88qY6MXPe4JJZpBjws3-b_WJ8ldQo

To claim this, I am signing this object: