404 error with wordpress ssl

SSL was installed on our server and our site is mostly wordpress and there are some non-wordpress pages which work fine with https:// and the home page works as well, but when I try to access a wordpress page/post I get 404 page not found error. I did try the wordpress https plugin to force ssl on certain pages and I got the same error. Also I do have custom permalinks. Any way to force ssl on certain wordpress pages?
Regards,
J.

Related posts

Leave a Reply

2 comments

  1. 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>
    
  2. It’s not WordPress-specific, but you could set the $_SERVER value to enable SSL. Add the following in your wp-config.php:

    $_SERVER['HTTPS']='on';
    

    This would at least let you figure out if you have your server configured properly or you have some other WordPress-related issue.