Skip to contentSkip to main navigation Skip to footer

Theme Not Loading Correctly & Website Loads Slower

After you install Hide My WP Ghost plugin and select Safe Mode or Ghost Mode, make sure you follow the instruction based on your server type after you save the settings.

Now, if you followed all the notifications from Hide My WP settings, there are some situations when the website loads slower in frontend or the theme is now showing correctly:

Attention! Please check the rewrite rules in the config file. Some URLs passed through the config file rules and are loaded through WordPress which may slow down your website or not load correctly.


On Apache & Litespeed servers

1. All the rewrite rules are loaded through .htaccess file which works instantly for Apache and Litespeed servers. If the rewrites are not loaded through .htaccess, they are handled by WordPress redirects and as they use more resources, they will load slower.

To make sure the rules are loaded through .htaccess you need to first check the .htaccess file and you should see the rules starting with #BEGIN HMWP_RULES and ending with #END HMWP_RULES like in this example:

# BEGIN HMWP_RULES
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^([_0-9a-zA-Z-]+/)?ajax$ /wp-admin/admin-ajax.php [QSA,L]
RewriteRule ^([_0-9a-zA-Z-]+/)?custom-admin/(.*) /wp-admin/$2 [QSA,L]
..........
</IfModule>
# END HMWP_RULES

Also, make sure to activate AllowOverride All for your directory. See how to do this:

For Cyberpanel with LiteSpeed you need to specify the .htaccess path where you have the rewrites:


If Hide My WP Ghost detects the rewrites are handled by WordPress and not by the config file you will get a notification in the Hide My WP settings after you check your website as a visitor:

Solution: After the settings are saved, change the .htaccess to read-only or to 0440 if you have Linux. This way the rules will not be removed by other plugins.

2. If you activate the Text Mapping in CSS and JS option, all the CSS and JS URLs will load dynamically as this is the only option to change the text in these files. Even with a cache plugin, you may experience a slower website as the CSS and JS are not cached on the first call.

https://hidemywpghost.com/kb/url-mapping-text-mapping/#text_mapping

If you want to use this option, use a cache plugin like Autoptimize or WP Rocket and Combine all the CSS and JS files into one. Set the cache to be deleted once a week or even once a month.

We encourage you to switch off the option Text Mapping in CSS and JS files including caches as it’s not improving the security but only hides classes and ids from theme detectors.


On Nginx servers

1. All the rewrite rules are loaded through nginx.conf file which works instantly for Nginx servers. If the rewrites are not loaded through nginx.conf file, they are handled by WordPress redirects and as they use more resources, they will load slower.

Make sure the rules are loaded through nginx.conf and you restarted Nginx server after you changed the paths.

Check if you have the line include path_to_file/hidemywp.conf in nginx.conf file as detailed in these examples:

If Hide My WP Ghost detects the rewrites are handled by WordPress and not by the config file you will get a notification in the Hide My WP settings after you check your website as a visitor:


On Windows IIS servers

1. All the rewrite rules are loaded through web.config file which works instantly for IIS servers with URL Rewrites 2 tool installed. If the rewrites are not loaded through web.config file, they are handled by WordPress redirects and as they use more resources, they will load slower.

Make sure you added the rules in web.config and restarted IIS server after you changed the paths.

https://hidemywpghost.com/kb/setup-hide-my-wp-on-windows-iis-server/

If Hide My WP Ghost detects the rewrites are handled by WordPress and not by the config file you will get a notification in the Hide My WP settings after you check your website as a visitor:


Other servers

For servers like Amazon Bitnami, Inmotion, WPEngine, Godaddy, Google Cloud, Flyweel, Kinsta, WPMUDEV, RunCloud, etc. please make sure you followed the instruction from Hide My WP Ghost after you saved the settings:

Amazon Bitnami Server: https://hidemywpghost.com/how-to-set-hide-my-wp-for-bitnami-servers/

WP Engine Server: https://hidemywpghost.com/hide-my-wp-pro-compatible-with-wp-engine/

Inmotion Server: https://hidemywpghost.com/hide-my-wp-pro-compatible-with-inmotion-wordpress-hosting/

Google Cloud: https://hidemywpghost.com/how-to-enable-allowoverwrite-on-google-cloud-platform/

Godaddy Server: https://hidemywpghost.com/how-to-use-hide-my-wp-with-godaddy/

AWS Lightsail Server: https://hidemywpghost.com/how-to-setup-hide-my-wp-on-amazon-aws-lightsail/

Flyweel Server: https://hidemywpghost.com/how-to-setup-hide-my-wp-on-flywheel-server/

Kinsta Server: https://hidemywpghost.com/kinsta-server-hide-my-wp-ghost-setup/

WPMUDEV Server: https://hidemywpghost.com/wpmudev-server-hide-my-wp-ghost-setup/

RunCloud Server: https://hidemywpghost.com/setup-hide-my-wp-on-runcloud/

Ploi Server: https://hidemywpghost.com/setup-hide-my-wp-on-ploi-io/