Title: Can&#8217;t install plugins after adding SSL
Last modified: January 14, 2017

---

# Can’t install plugins after adding SSL

 *  [nb3333](https://wordpress.org/support/users/nb3333/)
 * (@nb3333)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/cant-install-plugins-after-adding-ssl/)
 * Hi,
    I did a new install of WordPress to a site with an SSL certificate. Since
   then, i cannot install, delete, or upload plugins. I get a “Bad Gateway” error.
   I reinstalled WP three times. Same error.
 * Here’s what I did:
    1. I changed the urls to https 2. I added a redirect to https
   to .htaccess 3. Added code to force https admin logins to the wp-config.php

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [nb3333](https://wordpress.org/support/users/nb3333/)
 * (@nb3333)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/cant-install-plugins-after-adding-ssl/#post-8655497)
 * Forgot to add – I can add plugins through cPanel file manager just fine, but 
   I would prefer to do it in the WP dashboard.
 *  [bigevent](https://wordpress.org/support/users/bigevent/)
 * (@bigevent)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/cant-install-plugins-after-adding-ssl/#post-9032323)
 * I have exactly same problem. Can I ask what is the cPanel file manager? I am 
   wondering if there is a way to install/update plugins with WP dashboard after
   migrating https from http.
 * Thanks.
 *  [bigevent](https://wordpress.org/support/users/bigevent/)
 * (@bigevent)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/cant-install-plugins-after-adding-ssl/#post-9033141)
 * For future reference. I was able to solve the issue with the .htaccess update
   with the code below.
 *     ```
         RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(.*)\ HTTP/ [NC]
         RewriteCond %{HTTPS} !=on [NC]
         RewriteRule ^/?(wp-admin/|wp-login\.php) https://mysite.com%{REQUEST_URI}%{QUERY_STRING} [R=301,QSA,L]
       ```
   
 * Source from below.
    [https://codex.wordpress.org/Administration_Over_SSL](https://codex.wordpress.org/Administration_Over_SSL)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Can’t install plugins after adding SSL’ is closed to new replies.

## Tags

 * [SSL](https://wordpress.org/support/topic-tag/ssl/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [bigevent](https://wordpress.org/support/users/bigevent/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/cant-install-plugins-after-adding-ssl/#post-9033141)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
