Home Forums WordPress Plugins Hide My WP having some issue on configuring the plugin

This topic is: not resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #12867
    tarek009187
    Active
    Post count: 19

    Hello,
    i have installed the plugin and having couple of issues after that.

    first, it says Purchase code is empty or invalid. and i can find out any place where i can submit the purchase code.

    second, after installing i when i click on setting of hmwp plugin, it says “Sorry, you are not allowed to access this page.” or redirect me to home page with above url on different browser.
    http://mysite.com/wp-login.php/?redirect_to=http%3A%2F%2Fnovoapp.com%2Fwp-admin%2Foptions-general.php%3Fpage%3Dhide_my_wp&reauth=1

    i installed it on nginx multi-site(its network activated) and these are the codes i placed in my nginx configuration file(virtual host)

    added following code in nginx snippet and included the snippets inside my server block
    rewrite ^/template/lib/(.*) /wp-includes/$1 last;
    rewrite ^/storage/(.*) /wp-content/uploads/$1 last;
    rewrite ^/ext/aa405a34/(.*) /wp-content/plugins/akismet/$1 last;
    rewrite ^/ajax /wp-admin/admin-ajax.php last;
    rewrite ^/(readme\.html|wp-includes/$) /nothing_404_404 last;
    rewrite ^/(index\.php|wp-content/repair\.php|index\.php|wp-admin/)(.*) /$1$2 last;
    rewrite ^/(.*).php$ /nothing_404_404 last;

    and also added these rewrite rule in my server block. first 3 lines i had from before, the last one added from your wp-ms tutorial
    if (!-e $request_filename) {
    rewrite /wp-admin$ $scheme://$host$uri/ permanent;
    rewrite ^(/[^/]+)?(/wp-.*) $2 last;
    rewrite ^(/[^/]+)?(/.*\.php) $2 last;
    rewrite ^/([_0-9a-zA-Z-]+/)?wp-admin$ /;
    }

    one thing i also notice, after adding those rules, even if i click logout from my wp admin, again when i type http://mysite.com/wp-admin it takes me to wp-admin dashboard even without asking any password.

    i know the plugin is not officially supported for nginx multi-site but can be installed with converting htaccess rules.
    but i am so amused with this plugins features i couldn’t resist to give a try.

    thanks in advance.

    #12870
    tarek009187
    Active
    Post count: 19

    hi,
    i have solved my licence and pluhin setting problems. it was my stupidity that i tried in wrong place. sorry for that.

    but now have another problem. my site is broken. seems css and js is not loading.

    also even after configuring multi-site nginx rules i am getting this 2 error massage on plugin settings page

    1. You have enabled Multisite. It’s require to (re)configure Hide My WP after changing settings or activating new plugin or theme.

    2. It seems there is no writable htaccess file in your WP directory. In order to get all features of this plugin please change permission of your htaccess file.

    the code i used for multi-site nginx is

    # nginx configuration
    location /other {
    rewrite ^/other/(.*) /wp-includes/$1?sEyM_hide_my_wp=1234 break;
    }
    location /file {
    rewrite ^/file/(.*) /wp-content/uploads/$1?sEyM_hide_my_wp=1234 break;
    }
    location /ext {
    rewrite ^/ext/(.*) /wp-content/plugins/$1?sEyM_hide_my_wp=1234 break;
    }
    location /skin {
    rewrite ^/skin/([_0-9a-zA-Z-]+)/main.css /index.php?style_wrapper=true&template_wrapper=$1&sEyM_hide_my_wp=1234 break;
    rewrite ^/skin/([_0-9a-zA-Z-]+)/style\.css /nothing_404_404?sEyM_hide_my_wp=1234 break;
    rewrite ^/skin/(.*) /wp-content/themes/$1?sEyM_hide_my_wp=1234 break;
    }
    location / {
    try_files $uri $uri/ /index.php$is_args$args;
    rewrite ^/([_0-9a-zA-Z-]+/)?ajax /wp-admin/admin-ajax.php?sEyM_hide_my_wp=1234 break;
    rewrite ^/(readme\.html|license\.txt|wp-content/debug\.log|wp-includes/$) /nothing_404_404?sEyM_hide_my_wp=1234 break;
    rewrite ^/(((wp-content|wp-includes)/([A-Za-z0-9\-\_\/]*))|(wp-admin/(!network\/?)([A-Za-z0-9\-\_\/]+)))(\.txt|/)$ /nothing_404_404?sEyM_hide_my_wp=1234 break;
    }
    location /inc {
    rewrite ^/inc/(.*) /wp-content/$1?sEyM_hide_my_wp=1234 break;
    }

    can anyone tell me where im doing wrong now?

    thanks in advance.

    • This reply was modified 8 years, 10 months ago by tarek009187.
    • This reply was modified 8 years, 10 months ago by tarek009187.
    #12890
    Suman M.
    Post count: 12480
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.