I'm using Drupal 6 and already set the SSL Certificate (with my own Certificate Authority) configuration of my apache server, and added the following redirection in Drupal **.htaccess** file.

    RewriteCond %{SERVER_PORT} !^443$  
    RewriteRule ^test/home https://localhost/test/home [R=301,L]

When I try to access http://test/home it redirects to https://test/home correctly, but it 
shows a 404 error.

> Not Found
> 
> The requested URL /test/home was not found on this server.  
Apache/2.2.9 (Ubuntu) PHP/5.2.6-2ubuntu4.6 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g Server at localhost Port 443

Moreover, the secure pages module doesn't allow to enable secure pages.

![enter image description here][1]


  [1]: https://i.sstatic.net/2FMja.jpg

Is there any configuration problem? Please guide me.