• Resolved aeriusltd

    (@aeriusltd)


    After the last two upgrades, AIOS has been writing junk to my htaccess file. It looks like incomplete changes are being put in, resulting in repeated 500 errors due to badly configured htaccess.

    example:

    BEGIN Newfold Skip 404 Handling for Static Files

    RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !(robots.txt|ads.txt|[a-z0-9_-]sitemap[a-z0-9_.-].(xml|xsl|html)(.gz)?) RewriteCond %{REQUEST_URI} .(css|htc|less|js|js2|js3|js4|html|htm|rtf|rtx|txt|xsd|xsl|xml|asf|asx|wax|wmv|wmx|avi|avif|avifs|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|webp|json|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|webm|mpp|otf|_otf|odb|odc|odf|odg|odp|ods|odt|ogg|ogv|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|_ttf|wav|wma|wri|woff|woff2|xla|xls|xlsx|xlt|xlw|zip)$ [NC] RewriteRule .* – [L] END Newfold Skip 404 Handling for Static Files

    teCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !(robots.txt|ads.txt|[a-z0-9_-]sitemap[a-z0-9_.-].(xml|xsl|html)(.gz)?)
    RewriteCond %{REQUEST_URI} .(css|htc|less|js|js2|js3|js4|html|htm|rtf|rtx|txt|xsd|xsl|xml|asf|asx|wax|wmv|wmx|avi|avif|avifs|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|webp|json|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|webm|mpp|otf|_otf|odb|odc|odf|odg|odp|ods|odt|ogg|ogv|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|_ttf|wav|wma|wri|woff|woff2|xla|xls|xlsx|xlt|xlw|zip)$ [NC]
    RewriteRule .* – [L]
    END Newfold Skip 404 Handling for Static Files

    teCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !(robots.txt|ads.txt|[a-z0-9_-]sitemap[a-z0-9_.-].(xml|xsl|html)(.gz)?)
    RewriteCond %{REQUEST_URI} .(css|htc|less|js|js2|js3|js4|html|htm|rtf|rtx|txt|xsd|xsl|xml|asf|asx|wax|wmv|wmx|avi|avif|avifs|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|webp|json|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @aeriusltd

    It seems intermittent issue. Which hosting provider do you use? It is not the general case. I will create internal ticket for this.

    Regards

    Thread Starter aeriusltd

    (@aeriusltd)

    Bluehost. This is bringing down our sites multiple times per day – is there a workaround?

    Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @aeriusltd

    The .htaccess file is updated only when AIOS is verions updated or yoy make changes in AIOS related to htaccess.

    IF still site goes down due to multiple times please deactivate the AIOS plugin for a day and cross check if it is the issue.

    Here the multiple time I can see in .htaccess file

    BEGIN Newfold Skip 404 Handling for Static Files

    but AIOS plugin suppose to change the code in .htacces file between.

    "BEGIN All In One WP Security"
    "END All In One WP Security"

    So I consider it an intermittent server issue.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘writing junk to htaccess after update’ is closed to new replies.