V
V
Viktor Prishchepa2019-12-08 15:19:51
htaccess
Viktor Prishchepa, 2019-12-08 15:19:51

How to fix autodefault .htaccess with 444 permissions?

Hello! Help deal with the problem. I ran into a problem with automatically rewriting the .htaccess file, and setting permissions to 444.
Inserts the following lines:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</IfModule>

And in theory they should be like this:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

And because of these issues, the cache plugin responds with:
WP Rocket can't modify .htaccess file due to missing write permissions.

Since something (.htaccess) forces him to close from the record. Tried disabling all plugins didn't help. After a certain time, it closes again and erases the additions, or rather, it does not even allow them to be recorded.
Perhaps some plugin left traces in some file, but in which one ???
Another thing I noticed is that when I hover over the .htaccess file, the date of its creation is displayed October 23, 2017 00:32
This is just some kind of paradox!
It feels like it's coming from the past.
And also next to it is a file that I delete, and it also appears again, the date is October 23, 2017 04:27 (only the time is different).
File name: 0cf163
And here is the content:
1-k-50000|2-a-50000|3-w-50000|4-s-50000|5-r-50000|6-p-50000|7-k-50000|8-y-50000|9-n-50000|10-w-50000|11-s-50000|12-a-50000|13-a-50000|14-s-49554|15-s-49388|16-a-50000|17-n-50000|18-w-50000|19-a-50000|20-s-50000|21-f-50134|22-n-50000|23-s-50000|24-c-50000|25-g-50000|26-s-50000|27-m-50000|28-g-50000|29-s-50000|30-r-50000|31-k-50000|32-b-50000|33-h-50000|34-t-49999|35-r-50000|36-y-49198|37-g-50000|38-p-50000|39-s-50000|40-c-50000|41-s-49527|42-h-50000|43-k-50000|44-m-50000|45-i-50000|46-s-49959|47-b-49750|48-h-50000|49-s-50000|50-w-50000|51-p-50000|52-k-50000|53-f-50000|54-t-50000|55-p-50000|56-m-50000|57-n-50000|58-t-50000|59-s-50000|60-t-50000|61-h-50000|62-h-50000|63-n-50000|64-b-50000|65-s-50000|66-a-50000|67-m-50000|68-t-50000|69-s-50000|70-g-50000|71-m-50000|72-t-50000|73-l-50000|74-b-50000|75-j-50000|76-j-50000|77-n-50000|78-d-50000|79-h-50000|80-h-50000|81-w-50000|82-j-50000|83-m-50000|84-t-50000|85-o-50000|86-r-50000|87-f-50000|88-w-50000|89-t-50000|90-k-50000|91-a-50000|92-t-50000|93-j-50000|94-p-50000|95-u-49998|96-b-50000|97-y-50000|98-f-50000|99-t-50000|100-a-49607|101-j-50000|102-g-50000|103-t-50000|104-i-50000|105-i-50000|106-t-50000|107-j-50000|108-l-50000|109-s-50000|110-k-50000|111-y-50000|112-e-50000|113-m-50000|114-d-50000|115-s-50000|116-k-50000|117-k-50000|118-s-50000|119-g-50000|120-t-49999|121-a-50000|122-a-50000|123-h-50000|124-g-50000|125-n-50000|126-h-50000|127-k-50000|128-h-50000|129-t-49999|130-m-50000|131-s-50000|132-m-50000|133-t-50000|134-b-49678|135-y-48192|136-m-49338|137-k-50000|138-s-48959|139-c-50000|140-p-50000|141-s-50000|142-a-49661|143-k-50000|144-s-50000|145-s-50000|146-c-50000|147-e-50000|148-h-50000|149-d-50000|150-t-50000|151-a-50000|152-m-50000|153-d-50000|154-k-50000|155-m-50000|156-e-48632|157-f-50000|158-k-50000|159-s-50000|160-s-50000|161-r-50000|162-m-50000|163-o-50000|164-k-50000|165-h-50000|166-j-50000|167-k-50000|168-r-50000|169-o-50000|170-g-50000|171-e-49737|172-h-50000|173-g-50000|174-y-50000|175-s-50000|176-s-50000|177-u-49649|178-f-50000|179-e-50000|180-s-50000|181-e-49842|182-m-50000|183-x-48263|184-1-48943|185-s-50000|186-t-50000|187-g-50000|188-p-50000|189-j-50000|190-m-50000|191-j-50000|192-h-50000|193-w-50000|194-i-49545|195-g-50000|196-t-50000|197-p-50000|198-w-50000|199-o-50000|200-b-50000

5deda013d6a65039094870.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Prishchepa, 2019-12-09
@LINKOZ_RU

Dr-IY23U4AAJ43t.jpg
I did not receive any answers on my problem, but I found a solution to this problem myself. It's all about replacing files on the site. Perhaps this solution will help someone. Detailed description on this resource .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question