Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 257
Jinsy Oommen Avatar asked Jun 28 '12 21:06

Jinsy Oommen


People also ask

Why is my SSL certificate not working WordPress?

This might happen because WordPress lets you enforce SSL/HTTPS for the admin area of your site. To resolve this error, you'll need to edit your wp-config. php file. You can locate this file by using a Secure File Transfer Protocol (SFTP) client like FileZilla or the file manager in your web hosting account.

How do I enforce SSL in WordPress?

If you want to force SSL and HTTPS on your WordPress admin area or login pages, then you need to configure SSL in the wp-config. php file. define( 'FORCE_SSL_ADMIN' , true); This line allows WordPress to force SSL / HTTPs in WordPress admin area.


1 Answers

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>
like image 87
Ankit Sharma Avatar answered Nov 07 '22 02:11

Ankit Sharma