-
Rewrite incoming requests by adding
bootstrap.phpto the document root folder. -
Rewrite outgoing data by adding
adminrewrite.phpto theapps/myapp/handlersfolder. -
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!