Avoid the removal of “https:” from URLs

It was caused by CloudFlare https (which doesn’t set the $_SERVER[‘HTTPS’] variable), I solved it by forcing: $_SERVER[‘HTTPS’] = ‘on’; in the webserver configuration. After doing so I could also disable the CloudFlare Flexible SSL plugin, and get a little performance gain.

new subdomain to apply as main domain

You will need to modify some values directly in the database in order to change the url of your primary domain. The values in the following tables needs to be modified: wp_options, wp_site, wp_sitemeta, wp_blogs and wp_#_options Try this link it has all the steps involved in detail

How to achieve my custom post url structure?

I have created the custom URL using the function: add_rewrite_rule($regex, $redirect, $after). add_rewrite_rule( ‘^my-page/(.+)/?$’, ‘index.php?pagename=my-page&url=$matches[1]’, ‘top’ ); You can write your own custom rewrite rule and redirect to appropriate page: https://codex.wordpress.org/Rewrite_API/add_rewrite_rule

Unable to load WordPress local site after changing WordPress Address (URL) and Site Address (URL)

I was able to add WordPress Address (URL) and Site Address (URL) manually and access the local site again. What I did was add following code segments to following files. wp-config.php define(‘WP_HOME’,’http://www.local.abc.com’); define(‘WP_SITEURL’,’http://www.local.abc.com’); Functions.php I have added following code just after opening of update_option(‘siteurl’, ‘http://www.local.abc.com’ ); update_option(‘home’, ‘http://www.local.abc.com’ ); After that I have refresh site … Read more