404 error with wordpress ssl

Solution:

The directory tag is required in ssl virtual host config of apache same as of http port 80, to allow override redirect rules using .htaccess of wordpress.

 

<VirtualHost *:443>

    ..

    ..

    ..

    <Directory /var/www/html/domain.com/>

        DirectoryIndex index.php

        AllowOverride All

        Order allow,deny

        Allow from all

    </Directory>

</VirtualHost>