• Resolved Sean Thompson

    (@seanthompson)


    Hi @te_taipo,

    I’ve been having a problem where a rule I have in .htaccess chnges every time Pareto Security updates the ip list…

    <FilesMatch "^.*(error_log|debug\.log|xmlrpc\.php|wp-config\.php|php\.ini|\.[hH][tT][aApP].*)$">
    order allow,deny
    deny from all
    </FilesMatch>

    becomes…

    <FilesMatch "^.*(error_log|debug\.log|xmlrpc\.php|wp-config\.php|php\.ini|\.[hH][tT][aApP].*)$">
    </FilesMatch>

    I deactivated Pareto Security on one site for two weeks. Every morning I check, and the rule changes on all sites except that one.

    The only other plugin I use that writes to .htaccess is Litespeed Cache. If I update the settings, it creates a new .htaccess file, and the rule doesn’t change when that happens.

    Thanks in advance,
    Sean

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author te_taipo

    (@te_taipo)

    Looking into this now.

    Plugin Author te_taipo

    (@te_taipo)

    Latest update 2.7.0 should address that issue. Thanks for bringing it to my attention.

    Thread Starter Sean Thompson

    (@seanthompson)

    Thank you.

    Thread Starter Sean Thompson

    (@seanthompson)

    Hi @te_taipo,

    This is happening again.

    This time parts of the rewrite and redirect rules I have above the ClassicPress rewrite rules disappear.

    Plugin Author te_taipo

    (@te_taipo)

    Can you paste in the full rule in here thanks. I will sort before the next update due out in a few days

    Thread Starter Sean Thompson

    (@seanthompson)

    Sure. This…

    # Force SSL
    RewriteCond %{HTTPS} off [OR]
    RewriteCond %{HTTP_HOST} ^www\.oldtownweb\.com [NC]
    RewriteRule ^(.*)$ https://oldtownweb.com/$1 [L,R=301]
    # END Force SSL
    
    #Block author scans
    RewriteCond %{QUERY_STRING} ^author=([0-9]*)
    RewriteRule .* https://oldtownweb.com/? [L,R=301]
    # END Block author scans
    
    # Redirect Useless Archives
    RedirectMatch 301 ^/([0-9]+)/([0-9]+)?/?([0-9]+)?/?$    https://oldtownweb.com/
    RedirectMatch 301 ^/([0-9]+)/([0-9]+)?/?([0-9]+)?/?page https://oldtownweb.com/
    RedirectMatch 301 ^/author/(.*) https://oldtownweb.com/sean-thompson
    # END Redirect Useless Archives

    Turns into this…

    # Force SSL
    RewriteCond %{HTTPS} off [OR]
    RewriteCond %{HTTP_HOST} ^www\.oldtownweb\.com [NC]
    # END Force SSL
    
    #Block author scans
    RewriteCond %{QUERY_STRING} ^author=([0-9]*)
    # END Block author scans
    
    # Redirect Useless Archives
    # END Redirect Useless Archives
    Plugin Author te_taipo

    (@te_taipo)

    Thank you for that. There is a new update coming out shortly which will fix this issue.

    Plugin Author te_taipo

    (@te_taipo)

    2.8.7 was just released. Let me know how that goes.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Rules changing in .htaccess’ is closed to new replies.