How can I rewrite old attachment URLs?

Figured it out! The function I needed to hook is called “the_content”, because that’s the post content that is pulled directly from the database. I added this code into the functions.php file for my theme. function force_https_the_content($content) { if ( is_ssl() ) { $content = str_replace( ‘src=”http://’, ‘src=”https://’, $content ); } return $content; } add_filter(‘the_content’, … Read more

https and wordpress breaks posts

My best educated guess is to perform a checklist on the following: Take a look at the virtual host configuration files for your domains, if you have access to them. Ensure that they agree with the corresponding WordPress installations on your machine(s). If your Virtual Host configurations are written correctly and as intended, then the … Read more

Cannot upgrade to 4.0 – get SSL certificate error

The first issue is your hosting company fault. The underlying library that performs the authentication that you are actually connecting to wordpress.org is probably missing some related configuration to be able to complete correctly the authentication. The solution they gave you is not secure and while I don’t believe anything bad will happen because of … Read more

HTTPS to HTTP rewrite rules not working as expected

The SSL admin and login redirection should be done through the FORCE_SSL_ADMIN constant in wp-config.php: define(‘FORCE_SSL_ADMIN’, true); For further information: Administration Over SSL Aditionally, if you want be redirected to http when you’re logged and in the frontend, take a look at: Redirect WordPress front end https URLs to http without a plugin

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