Servers

WP Ghost on Flywheel Server Setup Guide

WP Ghost works on Flywheel hosting with extra configuration. Flywheel is an Nginx-based managed WordPress hosting platform that doesn’t support .htaccess files or direct Nginx config editing. Instead, Flywheel provides a built-in Redirect Tool for managing URL redirects. After activating WP Ghost, you need to copy the redirect rules WP Ghost generates and add them to Flywheel’s Redirect Tool. This guide walks through the complete setup.

Why Flywheel Requires Extra Setup

On most servers (Apache, LiteSpeed), WP Ghost writes rewrite rules directly to .htaccess and everything works automatically. On standard Nginx servers, WP Ghost writes rules to a custom config file (hidemywp.conf). Flywheel uses Nginx but doesn’t give you access to Nginx config files or .htaccess. Instead, Flywheel provides a web-based Redirect Tool in their hosting dashboard. WP Ghost detects Flywheel hosting and displays the redirect rules you need to add to this tool. You copy them from WP Ghost and paste them into Flywheel’s interface.

Step 1: Activate Safe Mode or Ghost Mode

  1. Go to WP Ghost > Change Paths > Level of Security.
  2. Select Safe Mode or Ghost Mode.
  3. Click Save.

Start with Safe Mode if this is your first time setting up WP Ghost on Flywheel. Safe Mode provides basic path security and is easier to troubleshoot. You can upgrade to Ghost Mode after confirming everything works.

Step 2: Add Redirects in the Flywheel Redirect Tool

After saving, WP Ghost displays a notification with the redirect rules you need to add to Flywheel’s hosting dashboard.

  1. Copy the redirect rules from the WP Ghost notification.
  2. Log in to your Flywheel hosting dashboard.
  3. Navigate to the Redirect Tool in your site’s settings.
  4. Add each redirect rule from WP Ghost into Flywheel’s Redirect Tool.
  5. Wait for Flywheel to activate the redirects (this may take a few moments).

Do not log out until all redirects are added and activated by the Flywheel server. If you log out before the redirects are active, you won’t be able to access the admin dashboard through the new login path. Keep your current session open until everything is confirmed working.

Step 3: Clear the Flywheel Cache

After the redirects are active, clear the Flywheel server cache so your site serves the updated paths.

  1. In the Flywheel hosting dashboard, clear the server cache for your site.
  2. If you use any additional cache plugins on your WordPress site, clear their cache too.

Step 4: Run the Frontend Login Test

After the redirects are active and the cache is cleared, run the Frontend Login Test to confirm everything works.

  1. In WP Ghost, run the Frontend Login Test.
  2. The test checks if the frontend and login pages load correctly with the new paths.
  3. If everything loads correctly, click “Yes, it’s working”.
  4. If something is broken, click “No, abort” to roll back to the previous settings.

Troubleshooting

Locked out after saving WP Ghost settings

You saved WP Ghost settings before the Flywheel redirects were active. Contact Flywheel support to access your site, or use the Safe URL parameter to bypass WP Ghost temporarily. If that doesn’t work, use the Emergency Disable guide to deactivate WP Ghost via SFTP.

Frontend Login Test fails

The Flywheel redirects may not be active yet or may be configured incorrectly. Check the Flywheel Redirect Tool to confirm all rules are in place. Make sure you copied the exact redirect rules from WP Ghost’s notification. Clear the Flywheel cache and try the test again.

Custom paths work but some assets return 404

Some assets may need additional redirect rules that aren’t covered by the basic redirect set. Check which specific URLs are returning 404 errors (browser developer tools > Network tab) and add the corresponding redirects in Flywheel’s tool.

Need to update paths after initial setup

Every time you change paths in WP Ghost, you need to update the corresponding redirects in Flywheel’s Redirect Tool. WP Ghost displays the updated redirect rules after saving. Remove the old redirects and add the new ones. Clear the Flywheel cache after updating.

Frequently Asked Questions

Can WP Ghost write the redirects automatically on Flywheel?

No. Flywheel doesn’t provide .htaccess or direct Nginx config access. Redirects must be added manually through Flywheel’s web-based Redirect Tool. WP Ghost detects Flywheel hosting and generates the rules for you, but you need to copy and paste them into Flywheel’s interface.

Should I use Safe Mode or Ghost Mode on Flywheel?

Start with Safe Mode. Because Flywheel requires manual redirect setup, it’s easier to troubleshoot a simpler configuration first. After confirming Safe Mode works correctly, you can upgrade to Ghost Mode and add the additional redirect rules that Ghost Mode generates.

Do I need to update Flywheel redirects every time I save WP Ghost?

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 corresponding redirects in Flywheel’s tool. Saving other WP Ghost settings (firewall, brute force, 2FA) doesn’t require redirect updates.

Does WP Ghost modify WordPress core files?

No. On Flywheel, WP Ghost uses WordPress hooks for application-level path changes and relies on Flywheel’s Redirect Tool for server-level redirects. No core files are modified. Deactivating WP Ghost restores all defaults instantly (though you should also remove the redirects from Flywheel’s tool).

WP Ghost on other hosting platforms:

John Darrel

Change the WordPress Database Prefix for Security

Replace the default wp_ database prefix with a random one to protect against SQL injection…

1 year

Customize WordPress Uploads Directory | WP Ghost

Change the WordPress uploads directory path with WP Ghost (rewrite rules, no files moved) or…

1 year

WP Ghost and WP Rocket Cache Setup Guide

Configure WP Ghost with WP Rocket cache. Enable file optimization, Change Paths in Cache Files.…

1 year

Why is website security important?

https://youtu.be/6ylhojSi-_E In this video, we’ll explore why website security matters and what can happen if…

1 year

Is WordPress Website Easily Hacked?

The security of your WordPress site depends on multiple factors, such as the strength of…

1 year

Set Up WordPress 2FA with Mobile Authenticator Apps

Step-by-step guides to connect WP Ghost 2FA with Google Authenticator, Authy, Microsoft Authenticator, or LastPass.…

1 year