From 44997560bbdc91d76c839772ab6abbcd3e4e43fc Mon Sep 17 00:00:00 2001 From: Ben Word Date: Sun, 29 Apr 2012 19:47:53 -0600 Subject: [PATCH] Fix #402 - Allow roots-htaccess.php to work with Litespeed --- inc/roots-htaccess.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/roots-htaccess.php b/inc/roots-htaccess.php index 6c4e613..0862d94 100644 --- a/inc/roots-htaccess.php +++ b/inc/roots-htaccess.php @@ -4,7 +4,8 @@ // https://github.com/retlehs/roots/wiki/Nginx // https://github.com/retlehs/roots/wiki/Lighttpd -if (stristr($_SERVER['SERVER_SOFTWARE'], 'apache') !== false) { +if (stristr($_SERVER['SERVER_SOFTWARE'], 'apache') || stristr($_SERVER['SERVER_SOFTWARE'], 'litespeed') !== false) { + function roots_htaccess_writable() { if (!is_writable(get_home_path() . '.htaccess')) { if (current_user_can('administrator')) {