WordPress site breaks when rewrite rules written in ngnix.conf file

Hi there,

I have setup a wordpress site on my nginx server running on ubuntu 20.04. Recently I installed a plugin called WP hide Pro ( to hide the directories from listening and being visible on the page source code as well as circumvent CMS detection sites, for security purposes.

however upon setting up the rewrite rules and including them in the nginx.conf file, my site breaks completely, CSS customization on the site aren’t visible and it pretty much looks like a basic HTML static webpage.

I’m completely new to nginx to I would appreciate anyone helping me out.

Also the link to viewing my nginx configuration file is - backup link -

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @z5251835,

To be honest from looking at your confiugration file and the rewrite rules that have been added, all seems okay. Having said that, the issue the way you are describing it, it doesn’t sound like an issue with Nginx but rather a misconfiguration.

What I mean is that Nginx is working and it’s doing what it’s been told. Having said that, what’s been told, to rewrite all those requests is interfering with the normal work of your website.

What I want to say is, since this is an issue created by the plugin itslelf, the best thing you can do is, is search this Plugin’s forums if there are any and if there aren’t contact the creator of the plugin directly.

I would be glad to hear the solution though! If you do manage to find it on your own or another user posts it here, or the developer gets back to you. Please do update this thread as I want to see how it unfolds!

Regards, KFSys