Witty and insightful observations on the world? Sorry to disappoint, this is a techie blog purely for self reference - published online in the hope it will help others!

WordPress under Magento multistore

This is a 'Note to Self' as much as anything else. It's explains how we got the Wordpress install to work on a Magento multistore using country stub directories. The SO question it relates to is here; http://stackoverflow.com/questions/32613815/htaccess-wordpress-under-magento-site-with-multi-language-sub-directories We have this in production, hopefully this answer might help someone at some point. The way we've done this is to add a RUN_CODE environmental variable which is used in a custom Wordpress filter to get the urls all working. I've used the 'eu' example from my question to illustrate it below. Note we had to do this for both Apache and Nginx so I've added the .htaccess and server blocks for both. APACHE - .htaccess In the `eu` country stub subdirectory you add this ... Read more

WordPress, Git and Capistrano v3

I'm writing this blog post because I've had to add a Wordpress site into a Magento site which uses Capistrano 3 as it's deployment framework. I was trying to work out the best way to set it all up and Googling it resulted in a right load of shit. No disrespect to the authors (many of whom are clearly very talented) but a lot of it was; - Old, out of date - Overly complicated - Using Capistrano v2 - Fundamentally disagrees with how I think it should be done Let me look at that last point. There are a lot of people who think Wordpress core should be in your repo. I don't agree with this at all, ... Read more