.htaccess not working while accessed via SSL/HTTPS in Apache2
<p>I have a problem with .htaccess configuration. My webserver is Apache2, and my website was coded by PHP. But, I have some trouble with .htaccess.</p>

<p>While I'm accessing it via non-ssl (<a href="http://mywebsite.dev" rel="nofollow">http://mywebsite.dev</a>), my .htaccess was work. I use .htaccess for URL Rewrite and handling error by custom template. But, when I access it via SSL (<a href="https://mywebsite.dev" rel="nofollow">https://mywebsite.dev</a>), for Index page was work. But, when I access <a href="https://mywebsite.dev/page/about" rel="nofollow">https://mywebsite.dev/page/about</a>, it's display 404 Not Found (displaying default 404 Not Found page, not my custom page. It's mean, my .htaccess code not load).</p>

<p>For my URL structure, it was <a href="http://mywebsite.dev/?load=page&amp;page=about" rel="nofollow">http://mywebsite.dev/?load=page&amp;page=about</a>. If I access <a href="http://mywebsite.dev/page/about" rel="nofollow">http://mywebsite.dev/page/about</a>, it works. But, not via SSL. What is problem? Btw, my /etc/apache2/sites-available/website.conf code is:</p>

<pre><code>&lt;VirtualHost *:80&gt;                                                                          
        ServerName mydomain.com                                                              
        ServerAdmin webmaster@localhost                                                     
        DocumentRoot /var/www/html/website/                                                 

        &lt;Directory /var/www/html/website&gt;                                                   
          Options Indexes FollowSymLinks                                                    
          AllowOverride All                                                                 
          Require all granted                                                               
        &lt;/Directory&gt;                                                                        

        # LogLevel info ssl:warn                                                             

        ErrorLog ${APACHE_LOG_DIR}/error.log                                                
        CustomLog ${APACHE_LOG_DIR}/access.log combined                                     
        ErrorLog ${APACHE_LOG_DIR}/error.log                                                
        CustomLog ${APACHE_LOG_DIR}/access.log combined  

        # enabled or disabled at a global level, it is possible to                          
        # For most configuration files from conf-available/, which are                      
        # enabled or disabled at a global level, it is possible to                          
        # include a line for only one particular virtual host. For example the              
        # following line enables the CGI configuration for this host only                   
        # after it has been globally disabled with "a2disconf".                             
        #Include conf-available/serve-cgi-bin.conf 

&lt;/VirtualHost&gt;                                                                              
</code></pre>

<p>And, my .htaccess code is:</p>

<pre><code>RewriteEngine On                                                                      
RewriteRule ^page/([A-Za-z0-9-]+)/?$ index.php?load=page&amp;page=$1 [NC]                 
ErrorDocument 404 /public/404.html                                                   
</code></pre>

<p>I'm developing it with in Windows using Laragon. And for Production env is: Ubuntu 16, PHP 7, and Apache2. Thanks.</p>

<p>Sorry for grammar mistakes, or you don't understand what I mean. Thank you very much was reading my question :)</p>