• Resolved abdmelo

    (@abdmelo)


    Hi,

    I made a purchase of the Hide My WordPress Pro plugin and tried to configure it in a WP Multisite without success!

    I have two websites (Multisite in WordPress):

    Site #1 (main);
    Site #2 (secondary).

    And I would like to hide the folders (wp-content, wp-includes, wp-admin) from site #2 in one way and from site #1 otherwise (different names).

    Note: I looked at all the how-to and videos and there is no workaround for this problem.

    The directories are structured as follows:

    /public_html/
    –/Folder/
    –/ Root-WP/
    –/. htaccess (from site #1)
    –/ Folder-Installation-WP/
    –/wp-content/
    –/wp-includes/
    –/wp-admin/
    –/. htaccess (from site #2)

    Question 01: Do I have to make separate settings for each .htaccess?

    Question 02: Do I have to add Folder-Setup-WP before the “/” slash?

    Question 03: What are the procedures for setting up two or more sites in a Multisite structure like this?

    Below are the attempts made:

    Attempt 01 for .haccess files (sites #1 and #2) – DOES NOT WORK:

    RewriteRule ^([_0-9a-zA-Z-]+/)?modules/dd6fc4e4e3/(.*) /wp-content/plugins/404-to-start/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?modules/c093573c57/(.*) /wp-content/plugins/exit-popup/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?modules/6bf30d63de/(.*) /wp-content/plugins/google-language-translator/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?modules/43015478be/(.*) /wp-content/plugins/google-typography/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?modules/9b455209c1/(.*) /wp-content/plugins/hide-my-wordpress/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?modules/85e5f69829/(.*) /wp-content/plugins/loco-translate/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?modules/2bfb1317bb/(.*) /wp-content/plugins/redirection/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?modules/202b51eba8/(.*) /wp-content/plugins/spectrocoin-accepting-bitcoin/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?modules/1c753d354f/(.*) /wp-content/plugins/ssl-insecure-content-fixer/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?modules/828c3ac396/(.*) /wp-content/plugins/wordpress-mu-domain-mapping/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?modules/7864f32584/(.*) /wp-content/plugins/wps-hide-login/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?modules/f9c7f63a6a/(.*) /wp-content/plugins/wordpress-seo/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?modules/(.*) /wp-content/plugins/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?assets/1d1a7bfcff/main.css(.*) /wp-content/themes/Frank-master/style.css$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?assets/1d1a7bfcff/(.*) /wp-content/themes/Frank-master/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?assets/bb28390a17/main.css(.*) /wp-content/themes/Loogle-master/style.css$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?assets/bb28390a17/(.*) /wp-content/themes/Loogle-master/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?assets/3d7957ec79/main.css(.*) /wp-content/themes/enfold/style.css$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?assets/3d7957ec79/(.*) /wp-content/themes/enfold/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?assets/9660f5c2f4/main.css(.*) /wp-content/themes/mnmlist3/style.css$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?assets/9660f5c2f4/(.*) /wp-content/themes/mnmlist3/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?assets/a8f2e11a54/main.css(.*) /wp-content/themes/storefront/style.css$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?assets/a8f2e11a54/(.*) /wp-content/themes/storefront/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?assets/227138ef7f/main.css(.*) /wp-content/themes/tonal/style.css$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?assets/227138ef7f/(.*) /wp-content/themes/tonal/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?assets/2fe1895cc8/main.css(.*) /wp-content/themes/twentyfifteen/style.css$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?assets/2fe1895cc8/(.*) /wp-content/themes/twentyfifteen/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?assets/bdeaa7676e/main.css(.*) /wp-content/themes/twentyfourteen/style.css$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?assets/bdeaa7676e/(.*) /wp-content/themes/twentyfourteen/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?assets/7d7d0964da/main.css(.*) /wp-content/themes/twentyseventeen/style.css$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?assets/7d7d0964da/(.*) /wp-content/themes/twentyseventeen/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?assets/fc664c683b/main.css(.*) /wp-content/themes/twentysixteen/style.css$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?assets/fc664c683b/(.*) /wp-content/themes/twentysixteen/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?assets/(.*) /wp-content/themes/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?storage/(.*) /wp-content/uploads/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/(.*) /wp-content/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?lib/(.*) /wp-includes/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?comments/(.*) /wp-comments-post.php$2 [QSA,L]
    Attempt 02 in .htaccess file (site #2) – ALSO DOES NOT WORK:

    Folder-Installation-WP was added before /wp-

    Thanks for return.

    Best regards

    • This topic was modified 7 years ago by abdmelo.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author John Darrel

    (@johndarrel)

    Hi,

    I emailed you back to your email address.

    For WP Multisite you activate the plugin for the entire network and the changes will be made to all the websites on your network.

    You can’t have different settings for each website because you can’t add different .htaccess for each website.

    All the WordPress Files will be located in the Root-Wp or Folder-Installation-WP and WordPress and .htaccess will know how to make the subfolders work as different websites.

    Just make sure that the .htaccess in /Folder-Installation-WP/.htaccess is working because in some cases only the /Root-Wp/.htaccess are read by apache and this is why you may get rewrite errors.

    The code from Hide My WP should be in the WordPress rewrite section. The .htaccess code in WP Multisite with subfolders should look like:

    _______________________________________________

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    ##### Hide My WP code goes here

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    _______________________________________________

    Let me know if this helps.

Viewing 1 replies (of 1 total)
  • The topic ‘PRO version doesn’t work in WP Multisite with different directory structure.’ is closed to new replies.