Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 134520

SimonSov on "is wp-config.php update save?"

$
0
0

I must insert a certain line into the wp config,
when the wordpress core updates, will these settings
then still be there, or will everything be overwritten?

this is what i have to add into the wp-config.php and
should be retained among future updates:

//ssl patch begin
  $domain = 'www.mydomain.com';
  if($_SERVER['HTTP_X_FORWARDED_HOST']=="ssl.webpack.de") {
        // mit SSL-oxy
      define('WP_SITEURL', 'https://ssl.webpack.de/' . $domain);
      define('WP_HOME', 'https://ssl.webpack.de/' . $domain);
      $_SERVER['HTTPS'] = 'on';
      $_SERVER['REQUEST_URI'] = '/' . $domain . $_SERVER['REQUEST_URI'];
  } else {
        // Ohne SSLroxy
      define('WP_SITEURL', 'http://' . $domain);
      define('WP_HOME', 'http://' . $domain);
  }
//ssl patch end

[Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]


Viewing all articles
Browse latest Browse all 134520

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>