Acht+ tekenen dat je je WordPress cache snelheids optimalisatie strategie fout doet

Je hebt WP Optimize of WP Sweep geïnstalleerd

Periodiek "opschonen" zou handig kunnen zijn, ware het niet dat je site er zeker niet twee keer sneller van gaat worden. Je database heeft zelf zijn interne optimalisatie en die is echt steengoed. Af en toe een optimize operatie doen is wellicht geen overbodige luxe. Maar .. om dit te doen installeer dan geen extra plugin om dit te regelen. Het kost je bij iedere aanroep in WordPress weer extra laadtijd. Vraag je webhost om periodiek je database tabellen te optimaliseren. Maar ook hier: een paar kilobyte "overhead" wegpoetsen gaat je niet echt helpen.

Je gebruikt WP postviews of WP Slimstat voor statistieken

(more…)


Direct Admin periodic auto mailbox clearer for one mailbox

This example will delete mail from 2 boxes, on each hour, one each week.

make sure you set USER, DOMAIN.EXT and MAILBOXNAME to their lowercase values, like
myuser, mydomain.com, tempinbox
to clear tempinbox {at} mydomain(.)com from the Direct Admin user named myuser

FILE

/home/USER/mailboxcleaner.sh

#!/bin/bash
find /home/USER/imap/DOMAIN.EXT/MAILBOXNAME/Maildir/new/* -type f -mmin +60 -exec rm {} \; #1 hour
find /home/USER/imap/DOMAIN.EXT/MAILBOXNAME/Maildir/cur/* -type f -mmin +60 -exec rm {} \; #1 hour
find /home/USER/imap/DOMAIN.EXT/MAILBOXNAME/Maildir/new/* -type f -mmin +10080 -exec rm {} \; #1 week
find /home/USER/imap/DOMAIN.EXT/MAILBOXNAME/Maildir/cur/* -type f -mmin +10080 -exec rm {} \; #1 week

CRON

every minute

bash /home/USER/mailboxcleaner.sh >/dev/null 2>&1


Let op met Google Page Speed images

De verkleintool heeft een limiet in bestandsnamen in de Zipfile die je kunt downloaden,
namelijk 54 tekens (inclusief de ".jpg"). Waardoor je effectief dus maar tot 50 tekens kunt doorgaan. (more…)


Amazon S3 WordPress opslag

Gedoe met je webhost of geen zin om in de techniek te duiken? MijnPress biedt uitkomst!

Wij hebben goede ervaringen en kennis van implementaties van Amazon WordPress S3 media offloading.
Reduceer opslagkosten en backupgrootte van uw bestanden. Realiseer een snellere site met Amazon S3 media offloading voor WordPress!

Overigens kunnen we u ook helpen als u uw mediabestanden liever in Nederland of Europa wilt hebben op servers die niet van een Amerikaans bedrijf zijn.

Vul uw wens in en we maken het waar!


Debug endless WordPress redirect loops while plugins and themes are disabled

OPEN
wp-includes/canonical.php

FIND
// protect against chained redirects
if ( !redirect_canonical($redirect_url, false) ) {

ABOVE, FIND

if ( $do_redirect ) {

AFTER, ADD
# directly after the $do_redirect if line

echo 'Debug in '.__FILE__. ' <br/>Doing redirect <br/>';
echo 'Req: '.$requested_url. '<br/>';
echo 'Red: '.$redirect_url;
die();

Happy debugging 🙂


Pronamic Domain Mapping Fonts / CSS / JavaScript not loading

Using Pronamic Domain Mapping and are your main theme/domain Fonts / CSS / JavaScript not loading ?

90% chance that your main domain does not support CORS

Enable it here:

.htaccess

 Header set Access-Control-Allow-Origin "*"

http://enable-cors.org/server_nginx.html

http://enable-cors.org/server_apache.html


Login hernoemen

Met deze regels hernoem je je /wp-login.php naar /login op de juiste manier

 

Zet dit in je .htaccess

RewriteBase /
RewriteRule ^login$ wp-login.php

En het volgende in je theme functions, of in mu-plugins/login.php

add_filter('site_url',  'wplogin_filter', 10, 3);
function wplogin_filter( $url, $path, $orig_scheme )
{
 $old  = array( "/(wp-login\.php)/");
 $new  = array( "login");
 return preg_replace( $old, $new, $url, 1);
}

Hacked By Gl0w!Ng -F! R3

Recently I was called to aid to help a client who's site was hacked by some (semi?-)random bot which was searching for freshly created WordPress sites.

The source of the problem: Whe configuration was all done, with exception of the creation of the first WordPress login user / login account.
This bot has created an "admin" user with an a {at} b(.)com mailaddress and tried to gain access to your site.

Luckly for us, we automate some protection to our WordPress hosting clients, which helped us in denying access to the wp-admin controlpanel due to 2 factor login.

With the knowlegde of this client (and some years of WordPress experience ..) I am able to recover your site from "Hacked By Gl0w!Ng -F! R3" if you are in need of help.

I can offer the following (and more if you want me to do so, including safe WordPress hosting):

  • Full WordPress cleanup
  • Login account for you in WordPress
  • Installation of at least a brute force login plugin and audit log plugin

I can do all the above for a fixed rate of 50 euros or 50 dollars (whichever you prefer).
Pro-tip to fix it right away and save a buck! If you want to spare hiring me: Make a backup, delete the full WordPress root and database, and start over using a fress install from WordPress.org

If you feel that you do not have the time or expertise to do so, let me know by contacting me using this contact form.


Views and types, Views media id to media url

add_shortcode('mijnpress_mediaid_to_url', 'mijnpress_mediaid_func');
function mijnpress_mediaid_func($atts)
{
return wp_get_attachment_url(intval($atts['id']));
}

Usage for custom field header_logo

<img src="[mijnpress_mediaid_to_url id=[wpv-post-field name="header_logo"]]" class="img-responsive img-center">


iDeal WooCommerce installatiedienst

Wilt u een veilige betaalmethode op uw website of webshop? Kies dan voor iDeal en laat het door ons installeren, bekijk snel alle informatie op : iDeal-woocommerce-installeren.nl

En om het makkelijk te maken hebben we ook de volgende domeinen vastgelegd :  ideal-woocommerce.nl idealwoocommerce.nl iDeal WordPress WooCommerce betalingen


Samenwerken doen we graag!

We werken graag op freelance basis. Ook voor andere web-bureau's en ontwikkelaars.
En dat mag ook op whitelabel basis. Doen we niet moeilijk over.

Bekijk de informatie pagina.