Confusion about Site url and directory

If I understand your question correctly you will need to adjust the above code to the following: define(‘WP_HOME’,’http:example2.com/yoursubfolder/’); define(‘WP_SITEURL’,’http:example2.com/yoursubfolder/’); Give that a try. EDIT: you are missing the slashes on the http also – define(‘WP_HOME’,’http://example2.com/yoursubfolder/’); define(‘WP_SITEURL’,’http://example2.com/yoursubfolder/’);

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

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