This is a comment on Requested URL was not found on this server, posted by WikiAdmin at 03.02.2015 08:52

View source for Patch for AP without rewrite_mode

%%(hl diff)
diff --git a/wacko/admin.php b/wacko/admin.php
--- a/wacko/admin.php
+++ b/wacko/admin.php
@@ -35,6 +35,8 @@
 $init->settings('theme_url',	$init->config['base_url'].'themes/'.$init->config['theme'].'/');
 $init->settings('user_table',	$init->config['table_prefix'].'user');
 $init->settings('cookie_hash',	hash('md5', $init->config['base_url'].$init->config['system_seed']));
+$init->settings('ap_mode',		true);
+
 
 $init->settings('cookie_path',	preg_replace('|https?://[^/]+|i', '', $init->config['base_url'].''));
 
@@ -72,12 +74,6 @@
 	}
 }
 
-// enable rewrite_mode to avoid href() appends '?page='
-if ($engine->config['rewrite_mode'] == false)
-{
-	$engine->config['rewrite_mode'] = 1;
-}
-
 ########################################################
 ##            End admin session and logout            ##
 ########################################################
diff --git a/wacko/classes/wacko.php b/wacko/classes/wacko.php
--- a/wacko/classes/wacko.php
+++ b/wacko/classes/wacko.php
@@ -2437,7 +2437,19 @@
 	// returns the full url to a page/method.
 	function href($method = '', $tag = '', $params = '', $addpage = 0, $anchor = '')
 	{
-		$href = $this->config['base_url'].( $this->config['rewrite_mode'] ? '' : '?page=' ).$this->mini_href($method, $tag, $addpage);
+		$_rewrite_mode = '';
+		
+		if ($this->config['ap_mode'] === true)
+		{
+			// enable rewrite_mode to avoid href() appends '?page='
+			$_rewrite_mode = 1;
+		}
+		else
+		{
+			$_rewrite_mode = $this->config['rewrite_mode'];
+		}
+		
+		$href = $this->config['base_url'].( $_rewrite_mode ? '' : '?page=' ).$this->mini_href($method, $tag, $addpage);
 
 		if ($addpage)
 		{
@@ -2446,7 +2458,7 @@
 
 		if ($params)
 		{
-			$href .= ($this->config['rewrite_mode'] ? '?' : '&').$params;
+			$href .= ($_rewrite_mode ? '?' : '&').$params;
 		}
 
 		if ($anchor)
%%

See also bugs:447