Access general settings trough wordpress files

You should be able to amend those items from the database. In the table wp_options there are the option_names home and siteurl – editing these back to the http version should do the trick. You might also want to check your wp-config.php file for the following: define(‘WP_SITEURL’, ‘https://www.website.com/’); define(‘WP_HOME’, ‘https://www.website.com/’); And remove the ‘s’ here … Read more

Occasional HTTPS Mixed Content Warning

I just saw this problem myself on my site. The issue for me was that the site was available as both https://example.com/ and http://example.com. If the first request to a page was for the http version, the links to assets would be to http: http://example.com/wp-content/themes/customizr/assets/front/img/thumb-standard-empty.png http://example.com/wp-content/uploads/… etc. These http asset links would get put into … Read more

some url does not redirect from http to https

Your code redirects the WordPress admin pages to use https (which will work fine), and then sets the site and WordPress addresses (which may auto redirect some pages). Note that FORCE_SSL_LOGIN was deprecated in WordPress version 4.0 (https://codex.wordpress.org/Administration_Over_SSL) You can force the whole site to use SSL using .htaccess (note to cover WordPress installs to … Read more

Which HTTP headers to use for subdomain embedding?

I was able to figure out that because Lightsail uses a Bitnami deployment of WordPress, Bitnami overrides the .htaccess file. Instead you have to update the /opt/bitnami/apache2/conf/httpd.conf file by adding the following content: <IfModule headers_module> <IfVersion >= 2.4.7 > Header always setifempty X-Frame-Options ALLOW-FROM https://*.example.com </IfVersion> <IfVersion < 2.4.7 > Header always merge X-Frame-Options ALLOW-FROM … Read more

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