JPKCom Rank Math Options — Guide & Tips
Use JPKCom Rank Math Options to unlock the robots.txt/.htaccess editors, remove Rank Math credits and disable telemetry — including on multisite, with zero configuration.
JPKCom Rank Math Options is a lightweight companion plugin for Rank Math SEO. It unlocks features hidden by default — chiefly the robots.txt/.htaccess editors on multisite — and trims a few Rank Math defaults most operators end up disabling anyway. There is nothing to set up: activating it is enough.
Guide
Requirements
- WordPress 6.9 or newer (tested up to 7.0)
- PHP 8.3 or newer
- Rank Math SEO must be installed and active — the plugin header declares
Requires Plugins: seo-by-rank-math, so WordPress prevents activation otherwise - Network-ready: can be network-activated on multisite and takes effect on every site
Installation
- Upload the
jpkcom-rank-math-optionsdirectory to/wp-content/plugins/, or install the ZIP via Plugins → Add New → Upload Plugin. - Activate the plugin (network-wide on multisite) under Plugins → Installed Plugins.
- Make sure Rank Math SEO is active.
- Open Rank Math → General Settings → Edit robots.txt or Edit .htaccess — the editors are now available.
Configuration
There is nothing to configure — activating it is enough. If you want to disable the behaviour temporarily without deactivating the plugin, you can unhook the filter from another plugin or your functions.php:
remove_filter( 'rank_math/can_edit_file', '__return_true' );Tips & Tricks
- Why the editors are missing in the first place: Rank Math hides the robots.txt/.htaccess editors on multisite (and when the
RANK_MATH_ADVANCED_MODEconstant is not set) for safety. The plugin opts your installation back in via the officialrank_math/can_edit_filefilter (returningtrue). - Cleaner source & sitemap: The "Powered by Rank Math" HTML comment in the frontend and the "Generator" line in the XML sitemap are removed.
- Telemetry off: Rank Math's anonymous usage tracking is forced off at the option layer (via an
option_rank-math-options-generalfilter that rewrites theusage_trackingkey tooffon read — the only reliable hook point). - Spec-compliant llms.txt: Rank Math prepends an intro paragraph to the generated
llms.txt; the plugin strips it so the file starts with the site's H1 as the spec expects. - Tidy admin bar: The Rank Math menu node is removed from the WordPress admin bar (frontend and backend).
- No database writes: The plugin only hooks into Rank Math filters — no UI, no options, no database entries of its own.
Further reading
- Source code on GitHub: https://github.com/JPKCom/jpkcom-rank-math-options
- Rank Math SEO: https://wordpress.org/plugins/seo-by-rank-math/
- This project's changelog