Where do the WHMCS nginx rewrite rules go?
Inside the site's server {} block (usually /etc/nginx/conf.d/<domain>.conf, or the panel's rewrite box). Run nginx -t, then systemctl reload nginx.
WHMCS inner pages still 404 after adding rules?
Check: 1) the rules are in the right server block (server_name matches); 2) reload succeeded; 3) root points at the entry directory; 4) pretty URLs are enabled in the app; 5) no control-panel rewrite file overrides it.
What about Apache for WHMCS?
This page also shows the .htaccess version; Apache needs mod_rewrite and AllowOverride All.
Anything else to watch for with WHMCS?
WHMCS is only tested on Apache. With nginx pick Full Friendly Rewrite; fall back to Basic URLs if it misbehaves. Move attachments, downloads, templates_c outside the web root as WHMCS recommends.