Home › Forums › WordPress Plugins › Hide My WP › Nginx website loses style
- This topic has 34 replies, 2 voices, and was last updated 5 years, 5 months ago by
Suman M..
-
AuthorPosts
-
June 16, 2020 at 2:51 pm #30975
Hello there
I forgot how hide my wp was set up and it worked before.
Now I changed the server host, hide my wp is invalid.
I tried all the previous methods now, but it didn’t work.
Can you help me solve this problem?I use the nginx server, I paste the code to nginx.conf
And restarted nginx.
But it does not work.Attachments:
You must be logged in to view attached files.June 16, 2020 at 3:34 pm #30977This reply has been marked as private.June 16, 2020 at 3:35 pm #30979This reply has been marked as private.June 18, 2020 at 7:46 am #30994And my wordpress is version 5.4.2
My theme is Newspaper version 10.3.4
Almost 2 days passed
Where is the customer service?
June 19, 2020 at 6:06 am #31002Hi, thanks for contacting us. I checked your nginx config screenshot above and could see that HMWP rules placed incorrectly there.
Please add HMWP rules just before the closing server braces } – https://www.screencast.com/t/pwpSJBYZBfZJ
And restart Nginx. Do let us know.June 19, 2020 at 6:32 am #31004ERROR:
nginx: [emerg] “rewrite” directive is not allowed here in /www/server/nginx/conf/nginx.conf:77
nginx: configuration file /www/server/nginx/conf/nginx.conf test failedI did it according to your method
An error message appearsI think you are wrong
1: sever{ hmwp code in there?} or 2: sever{} hmwp code in there?
I think it is 1
My previous way was done according to 1.
Your suggestion is 2thank you for your reply
this is important to me-
This reply was modified 5 years, 5 months ago by
Cindy1108.
Attachments:
You must be logged in to view attached files.June 19, 2020 at 7:09 am #31011Hi, my suggestion is 1 only. I said to add HMWP rules just before the closing server braces } and not after. Please check this screenshot – https://www.screencast.com/t/pwpSJBYZBfZJ
Previously, you have added HMWP rules within location{} block which is not correct. HMWP rules should be directly within server block{} and not other blocks inside server block.
Hope it’s clear now. Let us know if any questions.
June 19, 2020 at 7:37 am #31013My previous hmwp code location is correct
Not in location{} block
You may be wrongAttachments:
You must be logged in to view attached files.June 19, 2020 at 7:59 am #31016This reply has been marked as private.June 19, 2020 at 8:16 am #31017June 19, 2020 at 8:39 am #31019This reply has been marked as private.June 19, 2020 at 8:48 am #31020June 19, 2020 at 3:19 pm #31025This reply has been marked as private.June 20, 2020 at 5:16 am #31028Still not working
Attachments:
You must be logged in to view attached files.June 20, 2020 at 5:25 am #31030This reply has been marked as private. -
This reply was modified 5 years, 5 months ago by
-
AuthorPosts
You must be logged in to reply to this topic.

