From b0ee0cf01a08c2f8a79e685c599b3d0345ab0bf7 Mon Sep 17 00:00:00 2001 From: real_nowhereman Date: Wed, 11 Feb 2009 15:31:33 +0000 Subject: [PATCH] "smart" prettyurls: pathinfo URLs are default ONLY if there is no .htaccess in your BLOG_ROOT; it is true that having a .htaccess in your root does not imply mod_rewrite is enabled: if that is the case you can anyway overridable as usual by setting true or false manually --- fp-plugins/prettyurls/plugin.prettyurls.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fp-plugins/prettyurls/plugin.prettyurls.php b/fp-plugins/prettyurls/plugin.prettyurls.php index b2a39fc..9478c44 100644 --- a/fp-plugins/prettyurls/plugin.prettyurls.php +++ b/fp-plugins/prettyurls/plugin.prettyurls.php @@ -12,7 +12,7 @@ Author URI: http://www.nowhereland.it * Place where the index is stored */ define('PRETTYURLS_TITLES', true); -define('PRETTYURLS_PATHINFO', true); +define('PRETTYURLS_PATHINFO', !file_exists(ABS_PATH . '.htaccess')); define('PRETTYURLS_CACHE', CACHE_DIR . '%%prettyurls-index.tmp'); define('PRETTYURLS_CATS', CACHE_DIR . '%%prettyurls-cats.tmp');