Home Forums WordPress Plugins Hide My WP Nginx Server

This topic is: not resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #18260
    jedlarosa
    Active
    Post count: 20

    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 M.
    Post count: 12478

    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.