SSL setup: wp-login css doesn’t load over httpS

Got it solved. Turns out the server was hosted behind a reversed proxy, causing WordPress not knowing it was running over https. Once I knew this, I found the solutions in the official documentation: http://codex.wordpress.org/Administration_Over_SSL (under “Using a Reverse Proxy”) This was needed in my wp-config. define(‘FORCE_SSL_ADMIN’, true); if ($_SERVER[‘HTTP_X_FORWARDED_PROTO’] == ‘https’) $_SERVER[‘HTTPS’]=’on’

Redirect to https not working with .htaccess [closed]

You’ve put the code in the wrong place. The HTTP to HTTPS directives must go before the WordPress front-controller, otherwise it’s simply never going to get processed for anything other than direct file requests. Your custom directives should also be outside the # BEGIN WordPress block, otherwise WordPress itself is likely to override your directives … Read more

Change all http to https in mysql databse?

I should think that you can use phpAdmin Find and Replace where you find “http://www.example.com” and replace with “https://www.example.com“. This should handle all internal linking (if blog, then internal linking as well as images, etc.). It would not cover relative addressing like “//www.example.com”. In the case of WordPress, this would be done on the wp_posts … Read more

HTTPS page link in menu

You will need to convert the relative links to absolute links. You can do this in the wp_nav_menu_objects filter, which gets all menu items. Just edit the url property of each item. Another option would be to extend the default Walker_Nav_Menu with one that overrides start_el(), so you can modify the passed $item there before … Read more

WordPress redirect loop on nginx + apache reverse proxy

Issue was caused by nginx serving example.com/index.php while WordPress was redirecting to example.com/, thus causing a redirect loop. This is the working config I used to fixed the redirect loop: server { server_name example.com; root /var/www/example.com; index index.php; listen 443 ssl; ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem; include /etc/letsencrypt/options-ssl-nginx.conf; ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; location / { try_files $uri @apache; … Read more

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