remove index.php from urls, add NEMEX_BASE_URL constant