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

  1. Viktor Nagornyy
    Posted 2 years 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

    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 "adrotate-out.php">
        Order Allow,Deny
        Allow from all

    Hope that helps you out and saves time.


  2. Viktor Nagornyy
    Posted 2 years 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
    Plugin Author

    Posted 2 years ago #

    Excellent find viktorix! :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • AdRotate
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic