Reputation: 21
The problem is as follows:
I want to install a SSL certificate on my WP e-commerce WordPress website. I already installed the SSL via DirectAdmin. Besides many small tryouts, I have tried 2 main methods:
Question. How can I get SSL to work (preferably only the admin panel) without loosing all images?
Upvotes: 2
Views: 1773
Reputation: 31
I had the same problem as #1 on your list (404 errors when trying to access any URL on my website via https) and the solution for me was to add these lines to /etc/apache2/sites-enabled/default-ssl.conf
, which is my SSL-enabled website's configuration file:
<Directory /var/www/html/>
AllowOverride All
</Directory>
Of course, this assumes DocumentRoot /var/www/html
. Change accordingly if is this is different in your setup.
The thing is that Wordpress uses .htaccess rules to process the URLs and for them to work, AllowOverride All
needs to be in the server's configuration file.
In my situation, the configuration for the non-SSL and SSL-enabled variants were in a separate files. The non-SSL configuration had AllowOverride All
all along, and so everything was working fine. Once I had enabled the SSL, the other configuration file came into play and didn't have the required AllowOverride All
setting.
Upvotes: 1