- Nginx does not read .htaccess, so add the rewrite rules to the server block.
- Rewrite /page/subpage/request to index.php with page, subpage and request parameters.
- Leave /admincp out of the rewrite.
- Deny direct access to /includes/, /modules/, /admincp/inc/, /admincp/modules/ and dotfiles.
- Pass .php to your PHP-FPM socket and reload Nginx.
Written by MuADMINS from the sourceNot verified
WebEngine docs · 2025-05-05