WordPress – URLs nach Umzug in den Posts ändern

Auf die entsprechende MySQL Datenbank folgenden Befehl ausführen:

UPDATE wp_options SET option_value = replace(option_value, 'HTTPS://WWW.ALTE-DOMAIN.DOM', 'HTTPS://WWW.NEUE-DOMAIN.DOM') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'HTTPS://WWW.ALTE-DOMAIN.DOM','HTTPS://WWW.NEUE-DOMAIN.DOM');
UPDATE wp_posts SET post_content = replace(post_content, 'HTTPS://WWW.ALTE-DOMAIN.DOM', 'HTTPS://WWW.NEUE-DOMAIN.DOM');
UPDATE wp_postmeta SET meta_value = replace(meta_value,'HTTPS://WWW.ALTE-DOMAIN.DOM','HTTPS://WWW.NEUE-DOMAIN.DOM');

Funktioniert natürlich auch wenn man nur das www weg haben möchte.

WordPress – Browser Caching – Komprimierung

a2enmod expires deflate

dann in die .htaccess

##Browser Caching##
Header unset Pragma
FileETag None
Header unset ETag
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/html "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 1 month"
##Komprimierung##
<FilesMatch "\\.(js|css|html|htm|php|xml)$">
SetOutputFilter DEFLATE
</FilesMatch>

Linux – Connman – W-Lan PSK verbinden

# connmanctl

connmanctl> scan wifi
connmanctl> services
connmanctl> agent on
connmanctl> connect wifi_XXXXX_magaged_psk

Agent RequestInput wifi_XXXXX_magaged_psk
  Passphrase = [ Type=psk, Requirement=mandatory ]
  Passphrase? KENNWORT-EINGEBEN

connmanctl> quit