Home Forums WordPress Plugins Hide My WP Nginx Server

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Suman Maharjan 2 months, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #18260

    Hello,

    I need help please.

    I am trying to put these codes in a nginx config file:
    # BEGIN Hide My WP

    rewrite ^/other/js/embed\.min\.js /wp-includes/js/wp-embed.min.js?gk_hide_my_wp=1234 last;
    rewrite ^/cywrath2498/(.*) /wp-admin/$1?gk_hide_my_wp=1234 last;
    rewrite ^/other/(.*) /wp-includes/$1?gk_hide_my_wp=1234 last;
    rewrite ^/file/(.*) /wp-content/uploads/$1?gk_hide_my_wp=1234 last;
    rewrite ^/ext/(.*) /wp-content/plugins/$1?gk_hide_my_wp=1234 last;
    rewrite ^/skin/main\.css /?style_wrapper=1&gk_hide_my_wp=1234 last;
    rewrite ^/skin/style\.css /nothing_404_404?gk_hide_my_wp=1234 last;
    rewrite ^/skin/(.*) /wp-content/themes/twentyseventeen/$1?gk_hide_my_wp=1234 last;
    rewrite ^/ajax /wp-admin/admin-ajax.php?gk_hide_my_wp=1234 last;
    rewrite ^/inc/(.*) /wp-content/$1?gk_hide_my_wp=1234 last;
    rewrite ^/(readme\.html|license\.txt|wp-content/debug\.log|wp-includes/$) /nothing_404_404?gk_hide_my_wp=1234 last;
    rewrite ^/(((wp-content|wp-includes)/([A-Za-z0-9\-\_\/]*))|(wp-admin/(!network\/?)([A-Za-z0-9\-\_\/]+)))(\.txt|/)$

    /nothing_404_404?gk_hide_my_wp=1234 last;

    # END Hide My WP

    But I do not know where to find it. The hosting provider is not participating to help me. Please help. Is it possible to just put it in a htaccess?

    #18273
    Suman Maharjan
    Post count: 7365

    Hi, first of all is it Nginx server or Apache server? If it’s Nginx then you’ll need to add HMWP rules in nginx config file, and if it’s Apache server you have to add the rules in htaccess file.

    Please, generate debug report from HMWP start tab and post it here as private reply.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.