-
Rewrite incoming requests by adding
bootstrap.php
to the document root folder. -
Rewrite outgoing data by adding
adminrewrite.php
to theapps/myapp/handlers
folder. -
Add the following line to the
[Hooks]
section inconf/config.php
:page/render[] = myapp/adminrewrite
-
Using Nginx, add the following to your vhost:
location ~ ^/admin/?$ { error_page 404 /404.html; }
Using Apache, add the following instead:
RedirectMatch 404 ^\/admin\/?$
Fantastic!