• Resolved jlahm

    (@jlahm)


    I have installed the WordPress code in a subdirectory of my site as recommended by many for added security. In other words, if my site is in /var/www then WordPress is in /var/www/wordpress. My wp-content directory is /var/www/wp-content. I would like to have my galleries located in /var/www/wp-content/galleries, but if I enter “wp-content/galleries” or “/wp-content/galleries” in the Other Options tab in field Where would you like galleries stored? it will always create a new wp-content directory within the WordPress directory – ie as /var/www/wordpress/wp-content/galleries. How do I specify that the galleries should go in the wp-content directory with all other content rather than under the WordPress installation directory?

    Many thanks for your help.

    WordPress version: 4.7.1
    WordPress theme: Imagely Expedition
    Nextgen Gallery version: 2.1.62

Viewing 1 replies (of 1 total)
  • Plugin Contributor photocrati

    (@photocrati)

    @jlahm

    You may need to specify your gallery folder using the following idea added to your wp-config.php file although we cannot guarantee any security by obscurity modifications to your site will not adversely affect how NextGEN Gallery works.

    /** Change folder path */
    define( 'NEXTGEN_GALLERY_IMPORT_ROOT', dirname( __FILE__ ) . '/'  );
    define( 'NGG_IMPORT_ROOT', dirname( __FILE__ ) . '/' );

    Thanks!

    – Cais.

Viewing 1 replies (of 1 total)
  • The topic ‘Gallery location if WordPress in subdirectory’ is closed to new replies.