Broken Redirect Issue & Fix for Better WP Security
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.
- The topic ‘Broken Redirect Issue & Fix for Better WP Security’ is closed to new replies.