Support » Plugin: WP Super Cache » Cannot find .htaccess file

  • After upgrading to the latest version (and downgrading then upgrading again) we have experienced this issue:

    The plugin could not update /home/xxxxx/public_html.htaccess file: .htaccess not found: /home/xxxxx/public_html.htaccess. The new rules go above the regular WordPress rules as shown in the code below:

    There’s a missing trailing / in the path.
    /home/xxxxx/public_html.htaccess
    Should be
    /home/xxxxx/public_html/htaccess

    Downgrade to 1.4.9 and the problem goes away.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Try the development version at https://downloads.wordpress.org/plugin/wp-super-cache.zip as it’s fixed there. (unzip and overwrite the files in the wp-content/plugins/wp-super-cache/ directory)
    It will still say it’s 1.5.1 when installed so when 1.5.2 comes out you’ll receive an upgrade notice.

    Thread Starter driftdigital

    (@driftdigital)

    I downloaded and overwrite the working version. If I hit ‘Update Mod Rewrite Rules’ I now get:

    The plugin could not update /home/xxxxx/public_html/.htaccess file: page error or pages do not match and original .htaccess restored. The new rules go above the regular WordPress rules as shown in the code below:

    This bit looks right now:
    /home/xxxxx/public_html/.htaccess

    So I dont know what it’s grumbling about now…

    What happens if you select simple mode and test the cache? Does the tester work? The .htaccess updater uses the same logic. It grabs a copy of the page, updates the rules, grabs a second copy and checks that they are the same. If not, it restores the .htaccess.

    The rules are still displayed on the settings page so you can update the .htaccess file manually using a file editor.

    But if you’re not comfortable doing that you should definitely use simple mode. That’s what I use on my blogs.

    Thread Starter driftdigital

    (@driftdigital)

    It says it’s worked in simple mode.
    I can edit the .htaccess no problem, but curious why it cannot update the file:

    The plugin could not update /home/xxxxx/public_html/.htaccess file

    It has the correct ownership and permissions.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cannot find .htaccess file’ is closed to new replies.