Support » Plugin: iThemes Security (formerly Better WP Security) » After migration iThemes seems to lose wp-content setting

  • Resolved nolaflash

    (@nolaflashcom)


    On dev server I had used iThemes to set wp-content directory. Migrated to live site and manually updated ‘WP_CONTENT_URL’ and ‘WP_CONTENT_DIR’ in wp-config.php to new correct values.

    Site is working well mostly but iThemes warns that I should change wp-content location and lists default value of wp-content as current content directory though this is incorrect.

    Additionally comment forms were giving 404s when posting and yanking the additional rules iThemes added to htaccess resolved issue though that may be separate from this content directory issue.

    Any advice about making ithemes see the current content directory setting without having to save it again?

    https://wordpress.org/plugins/better-wp-security/

Viewing 5 replies - 1 through 5 (of 5 total)
  • dwinden

    (@dwinden)

    Make sure the new content folder name does not contain the string “wp-content”. So don’t rename the content folder to eg “my-wp-content” or “wp-content-new”.

    The check performed by the iTSec plugin is:

    if ( strpos( WP_CONTENT_DIR, 'wp-content' ) === false || strpos( WP_CONTENT_URL, 'wp-content' ) === false ) {
    	$this->settings = true; //wp-content folder renamed
    } else {
    	$this->settings = false; //wp-content folder not renamed
    }

    In an upcoming iTSec plugin update release the Advanced “Change Content Directory” feature is rewritten to address this and other issues.

    dwinden

    nolaflash

    (@nolaflashcom)

    Thank you for the reply! It is indeed named wp-content-dir. Given that iTSec suggests not using renaming on anything but a new install I assume I’ll just wait for that update.

    Any opinion on which iTSec setting might cause 404s for comment form posts to wp-comments-post.php?

    dwinden

    (@dwinden)

    The 404s on comment form posts migth be caused by the iTSec plugin WordPress Tweaks section, (Reduce) Comment Spam setting.

    If the provided info answers your questions please mark this topic as ‘resolved’.

    dwinden

    nolaflash

    (@nolaflashcom)

    Thank you!

    nolaflash

    (@nolaflashcom)

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘After migration iThemes seems to lose wp-content setting’ is closed to new replies.