If you are using WP Engine to host your WordPress website and want to increase its security by using WP Ghost, follow the steps below to set up Ghost mode and add the necessary records in WP Engine.

  1. Install and activate WP Ghost on your WordPress website.
  2. Go to WP Ghost > Change Paths > Level of Security section.
  3. Enable Safe Mode or Ghost Mode by clicking the corespondent button.
  4. Change and secure the paths based on your needs.
  5. Click on the Save button to apply the changes.

After saving the settings, check the rules you receive in the notification bar and go to the WP Engine User Portal.

Note! If you don’t see the WP Engine notification, select WP Engine from WP Ghost > Advanced > Compatibility > Server Type.

WP Engine Server Type

Setup Redirects on WP Engine

Go to your WP Engine panel, select the domain and go to Advanced > Web Rules section.

Click on the Rewrite Rules tab and then the Add Rule button to add the rules from WP Ghost to WP Engine.

Configure your redirect by selecting the action as Internal Rewrite adding the Source and the Destination URL. Then, according to the rules from WP Ghost, choose to Keep the original query string.

Click on Add Rule to create the redirect rule.

By following these steps, you should be able to set up WP Ghost and add the necessary redirect rules in WP Engine to increase the security of your WordPress website.

Bulk Upload Rewrite Rules

After saving the settings in WP Ghost, check the rules you receive in the notification bar.

  1. Click Copy Bulk Rules to copy all the rules at once.
  1. Paste them into a plain text file (e.g., ghost-rules.txt) and save it.
  2. Go to your WP Engine panel, select the domain and go to Advanced > Web Rules section.
Upload the bulk set of rewrite rules
  1. Select the ghost-rules.txt file in which you saved the copied rewrite rules from WP Ghost.
  2. Click the Add rules button to upload the rules.

Important: After uploading, edit each rule and change the Action to Internal Rewrite manually, as this is not set automatically during bulk upload.

All the information about WP Engine Rewrites are here: https://wpengine.com/support/web-rules-engine/#Rewrite_Web_Rules