I’m going to redirect http://blog.rootninja.com to the main site. I don’t know why I didn’t just do this in the first place. I’ve always left it over here on its own. But it’s all on the same Virtual private server. Anyway, this is really easy to do in lighttpd. First, redirect all “www.rootninja.com” traffic to “rootninja.com”, because that other page is useless.
‘ve seen many ways to solve wordpress url rewriting for lighttpd. Some people say all you need a server.error-handler-404 = “/index.php” and you’re done, but that didn’t work for me. If you’re trying to run several sites using multiple domain names with multiple installation directories, here’s how I got it to work. But take this with a grain of salt because your mileage may vary. /cliches
First make sure you include the broken-scriptfilename line in your fastcgi line. That was key to getting skins working for me.
I read in a bunch of places that you can’t use HTTP["scheme"] to redirect http:80 traffic to https:443 without using 2-3 levels of nesting with socket and host. But that’s just not true. The only reason it doesn’t work at first is because http is a subset of https, so be more specific with http$ and it works with just one line in lighttpd.conf.