Redirect http to https does not work on subdir where another instance of WordPress installed

I think the directive in .htaccess is inherited by subfolder The mod_rewrite directives in the root .htaccess file are not inherited by the /blog/.htaccess file (by default). You would need to specifically enable mod_rewrite inheritance, however, this probably adds unnecessary complexity. I try to modify the .htaccess under /blogs/ by adding the above directive again. … Read more

How can I make uploaded images in the editor load with HTTPS?

This should do it: add_action(‘admin_notices’, ‘https_the_content’); function https_the_content() { global $post; if(!$post->post_content) return; //change src to use the current url scheme $post->post_content = str_replace(array(“src=\”http://”, “src=”http://”), array(“src=\”//”, “src=”https://”), $post->post_content); return $post->post_content; }

WordPress Dashboards: slowness and timeouts

Have you taken a look at the error logs? Who is your host? Do you have Process Manager or anything similar to be able to tell what processes are running? A way to tell where most of your bandwidth is being used? Just some ideas on where you might be hitting resource limits. How large … Read more

https redirect hell (adding www)

Did you check your ISP’s setting? E.g. in Dreamhost’s control panel you have these 3 options: Do you want the www in your URL? Leave it alone: Both http://www.domain.com/ and http://domain.com/ will work. Add WWW: Make http://domain.com/ redirect to http://www.domain.com/ Remove WWW: Make http://www.domain.com/ redirect to http://domain.com/

WordPress generated links – menus and home_url() – not using https despite settings

This should not be default behavior. The home_url template tag retrieves the home URL for the current site, optionally with the $path argument appended. The function determines the appropriate protocol, “https” if is_ssl() and “http” otherwise. If the $scheme argument is “http” or “https” the is_ssl() check is overridden. http://codex.wordpress.org/Function_Reference/home_url There are filters involved so … Read more

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