Skip to content

Instantly share code, notes, and snippets.

@inspiredearth
inspiredearth / README.md
Last active October 13, 2021 12:40 — forked from hofmannsven/README.md
Storing WordPress files and database with WP-CLI on the server.

WordPress Backups with WP-CLI and TAR

The paths used may be server specific. Adjust accordinarly. Simple commands and bash scripts useful for quick backups of Wordpress.

@wgroenewold
wgroenewold / Force all traffic for Wordpress over SSL
Last active February 8, 2024 10:51
Force all traffic for Wordpress over SSL
define('FORCE_SSL_ADMIN', true);
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https'){
$_SERVER['HTTPS']='on';
}