Index: lib/AkRouter.php =================================================================== --- lib/AkRouter.php (revision 1247) +++ lib/AkRouter.php (working copy) @@ -291,9 +291,9 @@ $_parsed = '/'.$url_params['lang'].$_parsed; unset($url_params['lang']); } - $_parsed .= count($url_params) ? '?'.http_build_query($url_params) : ''; + $_parsed .= count($url_params) ? 'index.php?'.http_build_query($url_params) : ''; }else{ - $_parsed = count($url_params) ? '/?ak='.$_parsed.'&'.http_build_query($url_params) : '/?ak='.$_parsed; + $_parsed = count($url_params) ? '/index.php?ak='.$_parsed.'&'.http_build_query($url_params) : '/?ak='.$_parsed; } $_cache[$_cache_key] = $_parsed; return $_parsed; @@ -313,7 +313,7 @@ } if(defined('AK_URL_REWRITE_ENABLED') && AK_URL_REWRITE_ENABLED === false && $_parsed{0} != '?'){ - $_parsed = '?ak='.trim($_parsed,'/'); + $_parsed = 'index.php?ak='.trim($_parsed,'/'); } $_parsed .= empty($extra_parameters) ? '' : (strstr($_parsed,'?') ? '&' : '?').http_build_query($extra_parameters);