Home Forums WordPress Plugins Hide My WP Multisite does not work

This topic is: not resolved
Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1364
    live
    Pro
    Post count: 33

    HI,
    Multisite open, the child site is not displayed correctly

    .htaccess add the following code:
    RewriteEngine On
    RewriteBase /
    RewriteRule ^ index \ .php $ – [L]

    # Add a trailing slash to / wp-admin
    RewriteRule ^ wp-admin $ wp-admin / [R = 301, L]

    # BEGIN Hide My WP

    RewriteRule ^ other /(.*) / wp-includes / $ 1 [QSA, L]
    RewriteRule ^ file /(.*) / wp-content / uploads / $ 1 [QSA, L]
    RewriteRule ^ ext / 83538fcd /(.*) / wp-content / plugins / wordpress-mu-domain-mapping / $ 1 [QSA, L]
    RewriteRule ^ ext /(.*) / wp-content / plugins / $ 1 [QSA, L]
    RewriteRule ^ skin / ([_ 0-9a-zA-Z -] +) / main.css /index.php?style_wrapper=true&template_wrapper=$1 [QSA, L]
    RewriteRule ^ skin /(.*) / wp-content / themes / $ 1 [QSA, L]
    RewriteRule ^ ajax /wp-admin/admin-ajax.php [QSA, L]
    RewriteRule ^ (readme \ .html | license \ .txt | wp-content / debug \ .log | wp-includes / $) / nothing_404_404 [QSA, L]
    RewriteRule ^ (((wp-content | wp-includes) / ([A-Za-z0-9 -_ /] *)) | (wp-admin / (?! network /) ([A-Za-z0- . 9 -_ /] +))) (\ txt | /) $ / nothing_404_404 [QSA, L]

    # END Hide My WP

    RewriteCond% {REQUEST_FILENAME} -f [OR]
    RewriteCond% {REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^ (wp- (content | admin |. Includes) *) $ 1 [L]
    RewriteRule ^ (. * \. Php) $ $ 1 [L]
    RewriteRule. Index.php [L]

    I ask how to solve?
    Thank you very much!

    #1365
    live
    Pro
    Post count: 33
    This reply has been marked as private.
    #1452
    live
    Pro
    Post count: 33
    This reply has been marked as private.
    #1453
    live
    Pro
    Post count: 33
    This reply has been marked as private.
    #1454
    live
    Pro
    Post count: 33
    This reply has been marked as private.
    #1472
    Hassan
    Post count: 955

    Hi Live ,

    Sorry for delay,

    Firstly, You should consider that HMWP didn’t be tested with Nginx and Multisite at the same time yet. I already noticed it here: http://codecanyon.net/item/hide-my-wp-no-one-can-know-you-use-wordpress/4177158/faqs/14735

    It’s helpful to know the only real difference between single and MU installs is theme paths. So try Nginx configuration first to see whether New Include Path (wp-include, e.g. lib) works or not. If it works this means you configured Nginx correctly. If not you may need to change location of HMWP codes for example inside location / { … } block.

    As I said, main difference is related to themes. So you can use Nginx configs and only translate the line related to new theme path. There many other htaccess to Nginx convertors just Google to find them.

    This is my idea for that line:
    rewrite ^/skin/([_0-9a-zA-Z-]+)/main.css /?style_wrapper=true&template_wrapper=$1 last;

    Another thing, create another subdomain blog and try changes on it. That’s because you may experience issue with Domain Mapping configuration.

    Hope it help!
    Let me know the result.

    #1482
    live
    Pro
    Post count: 33
    This reply has been marked as private.
    #1484
    live
    Pro
    Post count: 33
    This reply has been marked as private.
    #1485
    live
    Pro
    Post count: 33

    This problem has troubled many days!
    Please give pointers to the next, I do not know where is the problem!
    Thank you very much!

    #1494
    Hassan
    Post count: 955

    It’s not related to WP itself, you need root access to server files in order to update Nginx config file. It’s usually not possible by FTP.

    As I said before, first make sure Nginx configured correctly by testing one line, Add one line (for example rewrite wp-include -> other) and then check out source code, click on jquery.js path to make sure it loaded. (You can also use tools.pingdom.com to find which URLs -files with css, js, jpg files- are loaded and which are not )

    Do not try to translate all of rules. Just use Nginx Configurations rules provided by HMWP and remove rules related to themes. Then we can go to next step.

    #1685
    live
    Pro
    Post count: 33
    This reply has been marked as private.
    #1688
    live
    Pro
    Post count: 33
    This reply has been marked as private.
    #1690
    live
    Pro
    Post count: 33
    This reply has been marked as private.
    #1721
    live
    Pro
    Post count: 33

    Hi,
    Please help solve,!
    thank you very much!

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

You must be logged in to reply to this topic.