Skip to content

Commit

Permalink
Fix roots#402 - Allow roots-htaccess.php to work with Litespeed
Browse files Browse the repository at this point in the history
  • Loading branch information
retlehs committed Apr 30, 2012
1 parent bb5e314 commit 4499756
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inc/roots-htaccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down

0 comments on commit 4499756

Please sign in to comment.