sandywp / plugins / wp-htaccess-editor
Htaccess File Editor
Safely Edit Htaccess File
A safe & simple htaccess file editor with automatic htaccess backups & htaccess file syntax testing.
Ready in seconds.
v1.73 40,000+ installs WP 4.0+ PHP 5.2+

What you get inside
3 screens-
WP Htaccess Editor admin page
-
Actions have to be double-confirmed to prevent accidents
About this plugin
WP Htaccess Editor provides a simple, safe & fast way to edit, fix & test the site’s htaccess file from WP admin. Before saving, htaccess file can be tested for syntax errors. It also automatically creates a htaccess backup every time you make a change to the htaccess file. Htaccess backups can be restored directly from the plugin, or via FTP if the errors in htaccess file prevents WP from running normally. Great for fixing htaccess errors. For all questions, including support please use the official forum.
Access WP Htaccess Editor via WP Admin – Settings menu.
If you’re having problems with SSL or HTTPS try our free WP Force SSL plugin. It’s the easiest way to enable SSL and fix SSL problems.
Testing Htaccess Syntax
Use the “test before saving” button to test htaccess file syntax before saving. Please note that this test does not check the logic of your htaccess file, ie if the redirects work as intended. It only checks for syntax errors. If you need to fix htaccess file we suggest restoring it to the default version and then add custom code line by line.
Automatic Htaccess Backups
Htaccess Editor makes automatic backups of htaccess file every time you make a change to it. Backups are located in /wp-content/htaccess-editor-backups/ and timestamped so you can easily find the latest htaccess backup and restore it.
WordPress Network (WPMU) Support
WP Htaccess Editor is fully compatible and tested with WP Network (WPMU). It shows up under the Settings menu in network admin. It’s not available in individual sites as there is only one htaccess file per network.
The plugin was originally developed by Lukenzi in March of 2011.
GDPR compatibility
We are not lawyers. Please do not take any of the following as legal advice.
WP Htaccess Editor does not track, collect or process any user data. Nothing is logged or pushed to any 3rd parties nor do we use any 3rd party services or CDNs. Based on that, we feel it’s GDPR compatible, but again, please, don’t take this as legal advice.
Questions
- I’ve killed my site! Help!?
Nothing is lost or deleted. You can easily get your site back.
You’re probably getting an error 500 or a white screen (of death). First connect to your site via FTP and locate the .htaccess file. Delete it, or rename it. Try the site again – it should open. If it did locate the backup of the old, working .htaccess file in/wp-content/htaccess-editor-backups/copy the file to your site’s root folder and you’re back in business.- I get an error saying the .htaccess file can’t be edited or created
Sorry, we can’t change the file access privileges set by your server. You’ll have to edit the file via FTP.
Head over to our support forums. We’ll gladly assist you.
- How do I get support?
Head over to our support forums. We’ll gladly help you.
- Do you support WP-CLI?
Not yet, but we plan to.
- How can I report security bugs?
You can report security bugs through the Patchstack Vulnerability Disclosure Program. The Patchstack team help validate, triage and handle any security vulnerabilities. Report a security vulnerability.
sandywp / also on the shelf
Try another plugin
WPIDE – File Manager & Code Editor
4.8 · 40K+ installs
WPIDE is a powerful file manager and code editor for WordPress with tabs, code completion, and full access to the entire…
5.0 · 500+ installs
This plugin will disable file editing tool in your WordPress admin panel.
60+ installs
Menus for Block Theme add a setting page in the WordPress dashboard (Settings > MFBT Settings) which allows managing the…
Spin up a real WordPress site in seconds.
Test plugins, build a demo, hand a client a link — then squash it and start again. No local setup, no Docker.