Title: is wp-config.php update save?
Last modified: August 21, 2016

---

# is wp-config.php update save?

 *  [SimonSov](https://wordpress.org/support/users/simonsov/)
 * (@simonsov)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/is-wp-configphp-update-save/)
 * 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 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [SimonSov](https://wordpress.org/support/users/simonsov/)
 * (@simonsov)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/is-wp-configphp-update-save/#post-3941208)
 * so, is it?
 *  [Krishna](https://wordpress.org/support/users/1nexus/)
 * (@1nexus)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/is-wp-configphp-update-save/#post-3941210)
 * WordPress core updates won’t change your added code.
 *  Thread Starter [SimonSov](https://wordpress.org/support/users/simonsov/)
 * (@simonsov)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/is-wp-configphp-update-save/#post-3941211)
 * Ok thank you, and is there any other possibility that this code will dissapear?
 *  Moderator [Jose Castaneda](https://wordpress.org/support/users/jcastaneda/)
 * (@jcastaneda)
 * THEME COFFEE MONKEY
 * [12 years, 11 months ago](https://wordpress.org/support/topic/is-wp-configphp-update-save/#post-3941214)
 * It will only change if you change it.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘is wp-config.php update save?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [Jose Castaneda](https://wordpress.org/support/users/jcastaneda/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/is-wp-configphp-update-save/#post-3941214)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
