The requested URL was not found on this server after SSL. Apache. WordPress. Self host
02:56 03 Mar 2020

A few days ago I have installed SSL certificate and move to https. After this no one page (except homepage) was not abble to open. Each time I get an error The requested URL was not found on this server. Apache/2.4.18. After I pick in Settings -> Permalincs -> General -> Simple all started to work. But now I cant change permalinks from simple to something else because of error. Using plugin Really Simple SSL.

.htaccess (644 permission but I've tryed 777)


RewriteEngine on
RewriteCond %{HTTPS} !=on [NC]
RewriteRule ^(.*)$ https://%{HTTP_HOST}%/$1 [R=301,L]

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

================================

apache2.conf


    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted

===============

mod_rewrite activated
/etc/apache2/sites-available/000-default.conf

=========================


    
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Require all granted
    

    . . .

wordpress ssl https http-status-code-404