WP Ghost works on Windows IIS (Internet Information Services) servers with manual configuration. IIS uses web.config for URL rewriting instead of .htaccess (Apache) or Nginx config files. After activating WP Ghost, you need to copy the rewrite rules WP Ghost generates and add them to your site’s web.config file, then restart IIS. WP Ghost detects IIS and generates the correct rewrite rules format automatically. This guide walks through the complete setup.
On Apache and LiteSpeed servers, WP Ghost writes rewrite rules to .htaccess automatically. On standard Nginx servers, WP Ghost writes to hidemywp.conf. Windows IIS uses a different rewrite system: the web.config XML file with IIS URL Rewrite Module rules. WP Ghost can’t write to web.config automatically on most IIS configurations, so it generates the rules and displays them for you to copy and paste. The IIS URL Rewrite Module must be installed on your server for these rules to work.
After saving, WP Ghost displays a notification with the IIS rewrite rules you need to add to web.config.
web.config file in the root directory of your WordPress installation.<system.webServer> section, within the <rewrite><rules> block.web.config file.Do not log out until you’ve completed all steps including the IIS restart. If you log out before the rewrite rules are active, you won’t be able to access the admin dashboard through the new login path. Keep your current session open until the Frontend Test confirms everything works.
IIS URL Rewrite Module required. The IIS URL Rewrite Module must be installed on your Windows server for these rules to work. This module is not included in IIS by default. Download it from the Microsoft IIS URL Rewrite Module page if it’s not already installed.
The IIS URL Rewrite Module may not be installed. Download and install it from the Microsoft IIS URL Rewrite Module page. After installing, restart IIS and test again. If the module is installed, check that the rewrite rules are placed correctly inside the <system.webServer><rewrite><rules> section of web.config.
If IIS returns a 500 error after editing web.config, there’s an XML syntax issue. Common causes include unclosed tags, duplicate sections, or pasting rules outside the correct XML block. Remove the WP Ghost rules, restart IIS to restore normal operation, then re-add them carefully. Use a text editor with XML validation to catch syntax errors before saving.
You saved WP Ghost settings before the IIS rewrite rules were in place. Access web.config via Remote Desktop or file share and either add the correct rewrite rules or remove the WP Ghost rules to restore the default paths. Alternatively, use the Safe URL parameter to bypass WP Ghost temporarily, or see the Emergency Disable guide.
Every time you change paths in WP Ghost, you need to update the rewrite rules in web.config and restart IIS. WP Ghost displays the updated rules after saving. Replace the old rules with the new ones in web.config, save, and restart IIS.
Yes. The IIS URL Rewrite Module is required for WP Ghost’s rewrite rules to work on IIS. It’s not included in IIS by default. Download it from Microsoft’s IIS downloads page. Without this module, IIS ignores the rewrite rules and custom paths won’t work.
On most IIS configurations, no. WP Ghost generates the IIS-formatted rewrite rules and displays them for you to copy into web.config manually. This is because web.config permissions and the XML structure vary across IIS installations, making automatic writing unreliable.
Only when you change path settings. If you change a custom login path, plugin path, or any other path setting, you need to update the rewrite rules in web.config and restart IIS. Saving other WP Ghost settings (firewall, brute force, 2FA) doesn’t require web.config updates.
No. On IIS, WP Ghost uses WordPress hooks for application-level path changes and relies on web.config rewrite rules for server-level redirects. No core files are modified. Deactivating WP Ghost restores all defaults instantly (though you should also remove the rewrite rules from web.config).
WP Ghost on other server environments:
Replace the default wp_ database prefix with a random one to protect against SQL injection…
Change the WordPress uploads directory path with WP Ghost (rewrite rules, no files moved) or…
Configure WP Ghost with WP Rocket cache. Enable file optimization, Change Paths in Cache Files.…
https://youtu.be/6ylhojSi-_E In this video, we’ll explore why website security matters and what can happen if…
The security of your WordPress site depends on multiple factors, such as the strength of…
Step-by-step guides to connect WP Ghost 2FA with Google Authenticator, Authy, Microsoft Authenticator, or LastPass.…