dkudler
Forum Replies Created
-
Wow. Okay. Not sure how that got in there — whether I added an extra return by accident or what.
I uncommented all of the lines except the empty first one, and all seems to be working. Fingers crossed!
Here’s the rules:
#RewriteCond %{HTTP_USER_AGENT} ^ [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} ^AhrefsBot [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} ^AspiegelBot [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} ^BLEXBot [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} ^Barkrowler [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} ^MJ12bot [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} ^MauiBot [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} ^PetalBot [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} ^SemrushBot [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} ^SeznamBot [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} ^petalbot [NC]`Obviously, I commented them out.
That first one… doesn’t look good, now that I think of it!
So I found the AIOWPS_USER_AGENT_BLACKLIST block in the htaccess file and commented it out.
All is now working. Very weird.
Why would that shut me out of the site?
I tried moving <i>all</i> the plugins into quarantine —?no good. I also deleted the contents of the cache folder. Likewise.
Forum: Plugins
In reply to: [Redirectioner] Division by zero errorFor what it’s worth….
I got this and found a solution. It’s probably not the most elegant, but…
I added a test at each line where the offending piece of code occurred (lines 208, 223, and 239); if $scoreBasis (the offending divisor) is equal to zero, the code sets $score to zero. Otherwise it runs the calculation as written:
if ($scoreBasis != 0) {$score = 100 - (($levscore / $scoreBasis)*100);} else $score=0;