• Resolved ingozoell

    (@ingozoell)


    Hi,

    how can I install this firewall
    1. in an subfolder installation “/cms/” with
    2. a renamed main folder “wp-content” to “files”, too?

    wp-check.php
    Screenshot (Dropbox)

    wp-config.php looks like

    
    [...]
    define('WP_SITEURL', 'https://DOMAIN.ltd/cms');
    define('WP_HOME', 'https://DOMAIN.ltd');
    
    define('WP_CONTENT_DIR', 'XXX/cms' . 'files'); // wp-content Directory => files
    define('WP_CONTENT_URL', 'https://DOMAIN.ltd/cms/files');  // wp-content URL => /flies
    define('UPLOADS', 'files/media'); // wp-content/uploads	=> files/media
    [...]
    
    • This topic was modified 7 years, 1 month ago by ingozoell.
    • This topic was modified 7 years, 1 month ago by ingozoell.
    • This topic was modified 7 years, 1 month ago by ingozoell.
    • This topic was modified 7 years, 1 month ago by ingozoell.
    • This topic was modified 7 years, 1 month ago by ingozoell.
    • This topic was modified 7 years, 1 month ago by ingozoell.
Viewing 1 replies (of 1 total)
  • Plugin Author nintechnet

    (@nintechnet)

    Hi,

    You can install it in a sub-folder. You are running PHP as an Apache module, hence you should select Apache + Mod_php and “.htaccess” during the installation. Make sure your Apache server reads the “.htaccess”, i.e., that the “AllowOverride” directive is set to “All”.

    Regarding the “wp-content” folder, it will work but you need to do the following before installing NinjaFirewall (it seems that you did it already according to the screenshot):
    1. Create a .htninj file
    2. Add this code to it:

    <?php
    /*
     +===================================================================+
     | NinjaFirewall optional configuration file                         |
     |                                                                   |
     | See: https://nintechnet.com/ninjafirewall/wp-edition/help/?htninja |
     +===================================================================+
    */
    // To change NinjaFirewall's log and cache folder
    // use the 'NFW_LOG_DIR' constant (no trailing slash needed) :
    
    define('NFW_LOG_DIR', '/full/path/to/files');
    

    Make sur to enter the full path to you new “wp-content” folder.

    In the doc and some pieces of text or labels, you will likely see some references to “wp-content”, but you can ignore them (they are hardcoded in the text, we’ll have to change them in the future release).

Viewing 1 replies (of 1 total)
  • The topic ‘Subfolder installation and renamed “wp-content” folder’ is closed to new replies.