Archive for January, 2013

  • Searching for large files on your server

    Searching for large files on your server

    Here’s a command that will check the root / folder recursively for files greater than or equal to 1GB and sort the list. cd / ; du -h | grep ‘^[0-9]\+\.\?[0-9]\?G’ 2>/dev/null | sort -nrk 1 Thanks to Phil from WiredTree for sharing that info, I’m just putting it down here so I can remember […]

    Read more »
  • Redirect rules to change underscore to hyphen

    Redirect rules to change underscore to hyphen

    Unfortunately Apache redirect only allows for 9 placeholders, so that’s the maximum amount of undercore changes that this code allows. We are using this mainly within WordPress sites, so here is the entire wp htaccess file, so you know where to position the code. # BEGIN WordPress RewriteEngine On RewriteBase / # BEGIN underscore to […]

    Read more »
  • Migrating static HTML sites into a WordPress multisite

    Migrating static HTML sites into a WordPress multisite

    1. Create a multisite account for the site you are about to import We set up our multisite using subdomains – this is useful for us as some of our sites there really are subdomains of the main site. If you use subfolders, some of the steps below might be different – unfortunately we havent […]

    Read more »