.htaccess file in wp-content/plugins/mainwp-child/. This change was made for WordPress.org compliance and to avoid side effects from plugin-level rewrite rules.
What Changed
- Removed the plugin-bundled
.htaccessfile from themainwp-childplugin root - Stopped shipping rewrite rules that point requests to a fake path
- Kept standard protections already used by the plugin
Why It Was Removed
- WordPress.org plugin rules do not allow hidden or extra files like a root
.htaccessfile in plugin packages. - The previous rule relied on Apache with
.htaccessprocessing enabled, so it did nothing on many Nginx or managed-host setups. - It was primarily footprint obfuscation and did not reliably prevent plugin fingerprinting.
- It could block legitimate plugin assets now or in future releases.
Security That Still Remains
- PHP files are protected by
ABSPATH(or equivalent) direct-access guards. index.phpfiles prevent directory listing output.- Adding
index.phpin the plugin root and key subfolders remains a safe, standard hardening step.
Optional: Add the Previous Rule Manually
If you still want this behavior, add a.htaccess file yourself in:
wp-content/plugins/mainwp-child/
Use the exact rules below:
Important Notes
- This is optional and host-dependent (Apache only when
.htaccessoverrides are enabled). - For crawler control, use site-level
robots.txtor server-level rules. - Google does not penalize sites simply for using the same plugin footprint.
- Add the file manually via your hosting file manager, SFTP, or SSH.