• Resolved artesea

    (@artesea)


    Site automatically installed the 6.0.4 update and then my .htaccess file only contained Really Simple Security config and nothing else.
    Broke every page other than the homepage.
    Fortunately I had a backup version to hand.

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    I’m sorry to hear that, we’re looking into it.

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    @artesea Were you upgraded to a 6.* version already?

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    @artesea if possible, can you send me or post here a copy of your .htaccess file so I can test with that? I can’t quite figure out how to reproduce it yet.

    Thread Starter artesea

    (@artesea)

    I have the plugin set to auto-update with WordPress, plus as the site is hosted through a server managed with cPanel, that has it’s own WordPress updater.
    Looking at my daily backups the file created this morning had 6.0.3 backed up in it with a timestamp of 20:09 UTC.
    The .htaccess file is complicated so I’d rather not publish it here, but can email it over if you provide me an address.

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    @artesea if you can send it to support(at)really-simple-ssl.com, I can test with that. Thanks!

    Plugin Support Aert Hulsebos

    (@aahulsebos)

    Hi @artesea,

    Is this the .htaccess file that is working, and by updating to 6.0.4 it crashes?

    regards Aert

    azzifar

    (@azzifar)

    Hi everyone,

    I have exactly the same issue. Now only the homepage is working. All the other pages doesn’t work anymore. How can I fix that? @rogierlankhorst can I send you my .htaccess file as well.

    Plugin Support Aert Hulsebos

    (@aahulsebos)

    Hi @azzifar,

    Please do, but please explain when this happened (Between which versions) and which .htaccess file you will send, preferably we have both, the former (working) and the one that doesn’t work.

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    @azzifar you can replace your .htaccess with the default wordpress lines:

    # BEGIN WordPress
    # The directives (lines) between "BEGIN WordPress" and "END WordPress" are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    This should restore your site. We’re trying to reproduce the issue and will release a fix asap.

    Thread Starter artesea

    (@artesea)

    I’ve emailed my .htaccess file (ticket 489967754) that works fine, below is what I found on the server this morning after complaints about the links to posts no longer working, no other rules were showing.

    #Begin Really Simple Security
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP:CF-Visitor} '"scheme":"http"'
    RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/
    RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
    </IfModule>
    
    #End Really Simple Security
    azzifar

    (@azzifar)

    Hello everyone,

    @rogierlankhorst thank you, I used your code and now everything is working fine again.

    Please find enclosed the .htaccess file that was causing error on my website :

    #Begin Really Simple Security
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP:X-Forwarded-Proto} !https
    RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
    </IfModule>
    
    #End Really Simple Security

    Another issue coming from this .htacces was that I had this error on my WordPress backend ‘COULD NOT CONNECT TO THE WORDPRESS REST API’. But now is everything alright again thanks to this default wordpresse htaccess.

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    The cause seems to be a race condition, where the .htaccess file is being updated multiple times at the same time. This branch should fix that:

    https://github.com/Really-Simple-Plugins/really-simple-ssl/tree/htaccess-race-condition

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    Closing this, the 6.0.5 release should resolve these issues in the future. Thanks for your help in investigating this.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Latest update trashed my .htaccess file’ is closed to new replies.