Latest update trashed my .htaccess file

[ad_1]

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

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

@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.

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.

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

Hi @artesea,

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

regards Aert

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.

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.

@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.

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

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.

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:

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

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer