WordPress.org

Ready to get started?Download WordPress

Forums

AdRotate
Broken Redirect Issue & Fix for Better WP Security (3 posts)

  1. Viktor Nagornyy
    Member
    Posted 1 year ago #

    Had a problem with click tracking URLs not working, sending visitors to 404 pages. After troubleshooting, I realized that Better WP Security added htaccess file inside /wp-content/ to prevent execution of php files.

    Original code is

    <Files *.php>
    deny from all
    </Files>

    Replace it with this to fix Adrotate issue and still prevent other php files from being executed:

    <FilesMatch "\.php$">
        Order Allow,Deny
        Deny from all
    </FilesMatch>
    <FilesMatch "adrotate-out.php">
        Order Allow,Deny
        Allow from all
    </FilesMatch>

    Hope that helps you out and saves time.

    http://wordpress.org/extend/plugins/adrotate/

  2. Viktor Nagornyy
    Member
    Posted 1 year ago #

    UPDATE: The above fix will make it work for logged in users, but not for visitors. Last piece of the puzzle is to disable Filter Suspicious Query Strings under Tweaks. It needs to be unchecked for it to work.

  3. Arnan de Gans
    Member
    Plugin Author

    Posted 1 year ago #

    Excellent find viktorix! :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic