Home Forums WordPress Plugins Hide My WP Nginx website loses style

This topic is: not resolved
Viewing 15 posts - 1 through 15 (of 35 total)
  • Author
    Posts
  • #30975
    Cindy1108
    Pro
    Post count: 27

    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.
    #30977
    Cindy1108
    Pro
    Post count: 27
    This reply has been marked as private.
    #30979
    Cindy1108
    Pro
    Post count: 27
    This reply has been marked as private.
    #30994
    Cindy1108
    Pro
    Post count: 27

    And my wordpress is version 5.4.2

    My theme is Newspaper version 10.3.4

    Almost 2 days passed

    Where is the customer service?

    #31002
    Suman M.
    Post count: 12478

    Hi, 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.

    #31004
    Cindy1108
    Pro
    Post count: 27

    ERROR:
    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 failed

    I did it according to your method
    An error message appears

    I 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 2

    thank you for your reply
    this is important to me

    • This reply was modified 4 years, 6 months ago by Cindy1108.
    Attachments:
    You must be logged in to view attached files.
    #31011
    Suman M.
    Post count: 12478

    Hi, 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.

    #31013
    Cindy1108
    Pro
    Post count: 27

    My previous hmwp code location is correct
    Not in location{} block
    You may be wrong

    Attachments:
    You must be logged in to view attached files.
    #31016
    Suman M.
    Post count: 12478
    This reply has been marked as private.
    #31017
    Cindy1108
    Pro
    Post count: 27

    It’s right.

    Attachments:
    You must be logged in to view attached files.
    #31019
    Suman M.
    Post count: 12478
    This reply has been marked as private.
    #31020
    Cindy1108
    Pro
    Post count: 27

    here you go

    Attachments:
    You must be logged in to view attached files.
    #31025
    Suman M.
    Post count: 12478
    This reply has been marked as private.
    #31028
    Cindy1108
    Pro
    Post count: 27

    Still not working

    Attachments:
    You must be logged in to view attached files.
    #31030
    Cindy1108
    Pro
    Post count: 27
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 35 total)

You must be logged in to reply to this topic.