I'm using drupal 6 and already sets SSL Certificate (with my own Certificate Authority (CA) ) configuration of my apache server. And added 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 
results following **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

And Moreover secure pages module doesn't allow to enable it shown as below

![enter image description here][1]


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

Is there any configuration problem ? please guide me.