Just had the very same issue with my Apache 2.4 configuration on CentOS version 8.
We are all mistaken on the meaning of the _default_:443 host: this section does not contain the default settings for all the virtual hosts defined additionally. It's merely a fallback virtual host when no other hostnames are defined or an undefined hostname is called.
So in ...
HTTP redirects happen AFTER the TLS handshake.
For the TLS handshake to be successful, the server has to present a valid certificate, having in it the hostname that is in the URL being accessed, otherwise browsers will show errors.
So the rule is simple: as soon as you see an https:// URL, even if all accesses to it are finally redirected to another URL, ...
It sounds like you may have put the directives in the wrong place in your .htaccess file. The HTTP to HTTPS redirect needs to go near the top, before any other rewrites.
The nature of your URLs suggest you are using a front-controller type pattern and rewriting requests to a common script. However, the "homepage" does not need to be rewritten (since mod_dir ...
When browsing to my external IP using 4g (by phone), I am entering the router configuration page. When doing the exact same over wifi (by laptop), I enter the site, as intended.
It sounds like you have enabled the router config page to be accessed both internally and externally. External access to the config is a very bad idea and is most likely on the ...
You can follow the following steps to transfer or export an SSL Certificate from Apache server.
Step1: Login into your VPS or server through ssh
Step2: Step2: Search .crt and .key files of the domain's SSL Certificate
You can use the following commands for finding the files.
# find / -name *.crt (For certificate)
# find / -name *.key (For private key)