# go to Admin Console
# go to {nav Configuration > Website > Advanced} section
# uncheck `Enable SEO-friendly URLs mode (MOD-REWRITE)` checkbox and Save Changes
# in the `/in-portal` file after `$application->Init();` line add `echo $application->HREF('no_permission');` code
# confirm, that built link has:
* correct base url
* the `index.php` file is being used