From 8354bee234a4f34e7aa8895dd91c20d50ef30e6f Mon Sep 17 00:00:00 2001 From: Ben Word Date: Sat, 21 Apr 2012 00:32:57 -0600 Subject: [PATCH] Fix #409 - Don't use clean URLs with default permalink structure --- inc/roots-htaccess.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/roots-htaccess.php b/inc/roots-htaccess.php index bf414a3..6c4e613 100644 --- a/inc/roots-htaccess.php +++ b/inc/roots-htaccess.php @@ -42,7 +42,7 @@ if (stristr($_SERVER['SERVER_SOFTWARE'], 'apache') !== false) { } // only use clean urls if the theme isn't a child or an MU (Network) install - if (!is_multisite() && !is_child_theme()) { + if (!is_multisite() && !is_child_theme() && get_option('permalink_structure')) { add_action('generate_rewrite_rules', 'roots_add_rewrites'); add_action('generate_rewrite_rules', 'roots_add_h5bp_htaccess'); if (!is_admin()) {