WP site URL changed to have HTTPS but still homepage does not redirect

I’ve changed the WP site URL to include https://www & it’s been a while. Entire site is correctly reflecting it. But unless I add following in .htaccess, the home page does not redirect RewriteCond %{HTTPS} !=on RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] But, in case htaccess goes corrupt & gets regenerated, it skips this part. Then http://domain.com … Read more

Logout redirects to a broken page(home URL is omitted)

I’m using the latest version of WP. I have a problem, where clicking the logout button from the admin panel redirects to a completely broken link: http://wp-login.php/?loggedout=true As you can see, the domain is completely omitted from the link(in my case it’s wp.localhost) I will mention that this local WP site was “cloned” from a … Read more

Using Multiple Queries of “home_url” vs. Calling a Variable Multiple Times

Question Since I am using multiple instances of home_url() in one page template, I was curious if the following method would speed up my page load time. My method is to store the output of home_url() within a variable and then call that variable each time, rather than using home_url() each time. Motivation The reason … Read more

Why does WordPress rely on an fully qualified site_url with a 15-step plan for moving a site?

From the Moving WordPress codex page (emphasis mine): When your domain name or URLs change there are additional concerns. The files and database can be moved, however references to the old domain name or location will remain in the database, and that can cause issues with links or theme display. If you do a search … Read more