How to protect login via SSL but not the rest of the dashboard

It is probably possible, but if you do it the security impact is like not using ssl at all unless all you want to protect is your user and password and don’t care much about protecting against actual hacking into the site. While user and password are sent only as part of the login form, … Read more

URLs not being output with https

Is the site running on Apache? If so you could put this in your .htaccess file <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.yoursite.com/$1 [R,L] </IfModule> also if you need SSL in your admin area and login pages put this into wp-config.php define(‘FORCE_SSL_ADMIN’, true); here’s another way that is more generic: RewriteEngine On … Read more

Only execute function if SSL is set up properly

There is no fail proof way to know if the site support https without actually trying to send a request over https to it (wp_get_remote for example). HTTPS traffic can be terminated on a load balancer and the traffic between it and wordpress done over http, therefor it is not obvious you will find any … Read more

Properly setting up a “default” nginx server for https

I managed to configure a shared dedicated hosting on a single IP with nginx. Default HTTP and HTTPS serving a 404 for unknown domains incoming. 1 – Create a default zone As nginx is loading vhosts in ascii order, you should create a 00-default file/symbolic link into your /etc/nginx/sites-enabled. 2 – Fill the default zone … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)