wp-change-domain


/ Published in: PHP
Save to your folder(s)

Before moving on to the site migration, make sure that the new domain is parked for hosting. To do this simply: go to your new domain and if a message appears that the site has not been launched yet, then everything is fine. If nothing will open at all, then you incorrectly rewrote the NS of the domain server (changing the NS servers takes from 4 to 24 hours), or forgot to add (park) the new domain to the hosting. If the domain is successfully parked, then follow the instructions:

We will move all the files from the old site to the new one to the folder where the site should be located (via FTP / hosting control panel);
We go to the old hosting and dump the database (export, via phpMyAdmin);
We pass to a new hosting, we fill our database (import, via phpMyAdmin);
We configure the connection to the new database (file wp-config.php);
Upload the file change-domain.php, unpack it and upload it to our new domain in the root folder;
In the browser, go to the link http: //vash_site/change-domain.php (make sure the connection to the database is correct);
We check the correctness of entering the domain names and click the "Change" button. You do not need to close the page.
If everything was done correctly, then the site should be launched and all links should be rewritten to new ones.


Copy this code and paste it in your HTML
  1. <?php
  2. /**
  3.  * Author: Daniel Doezema
  4.  * Author URI: http://dan.doezema.com
  5.  * Version: 0.2 (Beta)
  6.  * Description: This script was developed to help ease migration of WordPress sites from one domain to another.
  7.  *
  8.  * Copyright (c) 2010, Daniel Doezema
  9.  * All rights reserved.
  10.  *
  11.  * Redistribution and use in source and binary forms, with or without
  12.  * modification, are permitted provided that the following conditions are met:
  13.  *
  14.  * * Redistributions of source code must retain the above copyright
  15.  * notice, this list of conditions and the following disclaimer.
  16.  * * Redistributions in binary form must reproduce the above copyright
  17.  * notice, this list of conditions and the following disclaimer in the
  18.  * documentation and/or other materials provided with the distribution.
  19.  * * The names of the contributors and/or copyright holder may not be
  20.  * used to endorse or promote products derived from this software without
  21.  * specific prior written permission.
  22.  *
  23.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  24.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  25.  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  26.  * DISCLAIMED. IN NO EVENT SHALL DANIEL DOEZEMA BE LIABLE FOR ANY
  27.  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  28.  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  29.  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  30.  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  31.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  32.  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  33.  *
  34.  * @copyright Copyright (c) 2010 Daniel Doezema. (http://dan.doezema.com)
  35.  * @license http://dan.doezema.com/licenses/new-bsd New BSD License
  36.  */
  37. /* == CONFIG ======================================================= */
  38. // Authentication Password
  39. define('DDWPDC_PASSWORD', 'asd');
  40. // Cookie: Name: Authentication
  41. define('DDWPDC_COOKIE_NAME_AUTH', 'DDWPDC_COOKIE_AUTH');
  42. // Cookie: Name: Expiration
  43. define('DDWPDC_COOKIE_NAME_EXPIRE', 'DDWPDC_COOKIE_EXPIRE');
  44. // Cookie: Timeout (Default: 5 minutes)
  45. define('DDWPDC_COOKIE_LIFETIME', 60 * 5);
  46. /* == NAMESPACE CLASS ============================================== */
  47. class DDWordPressDomainChanger {
  48. /**
  49.   * Actions that occurred during request.
  50.   *
  51.   * @var array
  52.   */
  53. public $actions = array();
  54. /**
  55.   * Notices that occurred during request.
  56.   *
  57.   * @var array
  58.   */
  59. public $notices = array();
  60. /**
  61.   * Errors that occurred during request.
  62.   *
  63.   * @var array
  64.   */
  65. public $errors = array();
  66. /**
  67.   * File contents of the wp-config.php file.
  68.   *
  69.   * @var string
  70.   */
  71. private $config = '';
  72. /**
  73.   * Class Constructor
  74.   *
  75.   * @return void
  76.   */
  77. public function __construct() {
  78. $this->loadConfigFile();
  79. }
  80. /**
  81.   * Gets a constant's value from the wp-config.php file (if loaded).
  82.   *
  83.   * @return mixed; false if not found.
  84.   */
  85. public function getConfigConstant($constant) {
  86. if($this->isConfigLoaded()) {
  87. preg_match("!define\('".$constant."',[^']*'(.+?)'\);!", $this->config, $matches);
  88. return (isset($matches[1])) ? $matches[1] : false;
  89. }
  90. return false;
  91. }
  92.  
  93. /**
  94.   * Gets $table_prefix value from the wp-config.php file (if loaded).
  95.   *
  96.   * @return string;
  97.   */
  98. public function getConfigTablePrefix() {
  99. if($this->isConfigLoaded()) {
  100. preg_match("!table_prefix[^=]*=[^']*'(.+?)';!", $this->config, $matches);
  101. return (isset($matches[1])) ? $matches[1] : '';
  102. }
  103. return '';
  104. }
  105. /**
  106.   * Gets the best guess of the "New Domain" based on this files location at runtime.
  107.   *
  108.   * @return string;
  109.   */
  110. public function getNewDomain() {
  111. $new_domain = str_replace('http://','', $_SERVER['SERVER_NAME']);
  112. if(isset($_SERVER['SERVER_PORT']) && strlen($_SERVER['SERVER_PORT']) > 0 && $_SERVER['SERVER_PORT'] != 80) {
  113. $new_domain .= ':'.$_SERVER['SERVER_PORT'];
  114. }
  115. return $new_domain;
  116. }
  117. /**
  118.   * Gets the "siteurl" WordPress option (if possible).
  119.   *
  120.   * @return mixed; false if not found.
  121.   */
  122. public function getOldDomain() {
  123. if($this->isConfigLoaded()) {
  124. $mysqli = @new mysqli($this->getConfigConstant('DB_HOST'), $this->getConfigConstant('DB_USER'), $this->getConfigConstant('DB_PASSWORD'), $this->getConfigConstant('DB_NAME'));
  125. $this->notices[] = 'Unable to connect to this server\'s database using the settings from wp-config.php; check that it\'s properly configured.';
  126. } else {
  127. $result = $mysqli->query('SELECT * FROM '.$this->getConfigTablePrefix().'options WHERE option_name="siteurl";');
  128. if(is_object($result) && ($result->num_rows > 0)) {
  129. $row = $result->fetch_assoc();
  130. return str_replace('http://','', $row['option_value']);
  131. } else {
  132. $this->error[] = 'The WordPress option_name "siteurl" does not exist in the "'.$this->getConfigTablePrefix().'options" table!';
  133. }
  134. }
  135. }
  136. return false;
  137. }
  138. /**
  139.   * Returns true if the wp-config.php file was loaded successfully.
  140.   *
  141.   * @return bool;
  142.   */
  143. public function isConfigLoaded() {
  144. return (strlen($this->config) > 0);
  145. }
  146. /**
  147.   * Replace $find with $replace in a string segment and still keep the integrity of the PHP serialized string.
  148.   *
  149.   * Example:
  150.   * ... s:13:"look a string"; ...
  151.   * serializedReplace('string', 'function', $serialized_string)
  152.   * ... s:15:"look a function"; ...
  153.   *
  154.   * @param string;
  155.   * @param string;
  156.   * @param string;
  157.   * @return string;
  158.   */
  159. public static function serializedStrReplace($find, $replace, $haystack) {
  160. $length_diff = strlen($replace) - strlen($find);
  161. $find_escaped = self::preg_quote($find, '!');
  162. if(preg_match_all('!s:([0-9]+):"([^"]*?'.$find_escaped.'{1}.*?)";!', self::regExpSerializeEncode($haystack), $matches)) {
  163. $matches = array_map(array(__CLASS__,'regExpSerializeDecode'), $matches);
  164. $match_count = count($matches[0]);
  165. for($i=0;$i<$match_count;$i++) {
  166. $new_string = str_replace($find, $replace, $matches[2][$i], $replace_count);
  167. $new_length = ((int) $matches[1][$i]) + ($length_diff * $replace_count);
  168. $haystack = str_replace($matches[0][$i], 's:'.$new_length.':"'.$new_string.'"', $haystack);
  169. }
  170. }
  171. return $haystack;
  172. }
  173. /**
  174.   * Enhanced version of preg_quote() that works properly in PHP < 5.3
  175.   *
  176.   * @param string;
  177.   * @param mixed; string, null default
  178.   * @return string;
  179.   */
  180. public static function preg_quote($string, $delimiter = null) {
  181. $string = preg_quote($string, $delimiter);
  182. if(phpversion() < 5.3) $string = str_replace('-', '\-', $string);
  183. return $string;
  184. }
  185. /**
  186.   * Attempts to load the wp-config.php file into $this->config
  187.   *
  188.   * @return void;
  189.   */
  190. private function loadConfigFile() {
  191. $this->config = file_get_contents(dirname(__FILE__).'/wp-config.php');
  192. if(!$this->isConfigLoaded()) {
  193. $this->notices[] = 'Unable to find "wp-config.php" ... Make sure the '.basename(__FILE__).' file is in the root WordPress directory.';
  194. } else {
  195. $this->actions[] = 'wp-config.php file successfully loaded.';
  196. }
  197. }
  198.  
  199.  
  200. /**
  201.   * Replaces any occurrence of " (double quote character) within the value
  202.   * of a serialized string segment with [DOUBLE_QUOTE]. This allows for RegExp
  203.   * to properly capture string segment values in self::serializedStrReplace().
  204.   *
  205.   * Example:
  206.   * ... s:13:"look "a" string"; ...
  207.   * regExpSerializeEncode($serialized_string)
  208.   * ... s:13:"look [DOUBLE_QUOTE]a[DOUBLE_QUOTE] string"; ...
  209.   *
  210.   * @param string;
  211.   * @return string;
  212.   */
  213. private static function regExpSerializeEncode($string) {
  214. if(preg_match_all('!s:[0-9]+:"(.+?)";!', $string, $matches)) {
  215. foreach($matches[1] as $match) {
  216. $string = str_replace($match, str_replace('"', '[DOUBLE_QUOTE]', $match), $string);
  217. }
  218. }
  219. return $string;
  220. }
  221.  
  222. /**
  223.   * Undoes the changes that self::regExpSerializeEncode() made to a string.
  224.   *
  225.   * @see self::regExpSerializeEncode();
  226.   * @param string;
  227.   * @return string;
  228.   */
  229. private static function regExpSerializeDecode($string) {
  230. return str_replace('[DOUBLE_QUOTE]', '"', $string);
  231. }
  232. }
  233. /* == START PROCEDURAL CODE ============================================== */
  234. // Config/Safety Check
  235. if(DDWPDC_PASSWORD == 'Replace-This-Password') {
  236. die('This script will remain disabled until the default password is changed.');
  237. }
  238. // Password Check -> Set Cookie -> Redirect
  239. if(isset($_POST['auth_password'])) {
  240. /**
  241.   * Try and obstruct brute force attacks by making each login attempt
  242.   * take 5 seconds.This is total security-through-obscurity and can be
  243.   * worked around fairly easily, it's just one more step.
  244.   *
  245.   * MAKE SURE you remove this script after the domain change is complete.
  246.   */
  247. sleep(5);
  248. if(md5($_POST['auth_password']) == md5(DDWPDC_PASSWORD)) {
  249. $expire = time() + DDWPDC_COOKIE_LIFETIME;
  250. setcookie(DDWPDC_COOKIE_NAME_AUTH, md5(DDWPDC_PASSWORD), $expire);
  251. setcookie(DDWPDC_COOKIE_NAME_EXPIRE, $expire, $expire);
  252. die('<a href="'.basename(__FILE__).'">Click Here</a><script type="text/javascript">window.location = "'.basename(__FILE__).'";</script>');
  253. }
  254. }
  255. // Authenticate
  256. $is_authenticated = (isset($_COOKIE[DDWPDC_COOKIE_NAME_AUTH]) && ($_COOKIE[DDWPDC_COOKIE_NAME_AUTH] == md5(DDWPDC_PASSWORD))) ? true : false;
  257. // Check if user is authenticated
  258. if($is_authenticated) {
  259. $DDWPDC = new DDWordPressDomainChanger();
  260. try {
  261. // Start change process
  262. if(isset($_POST) && is_array($_POST) && (count($_POST) > 0)) {
  263. // Clean up data & check for empty fields
  264. $POST = array();
  265. foreach($_POST as $key => $value) {
  266. $value = trim($value);
  267. if(strlen($value) <= 0) throw new Exception('One or more of the fields was blank; all are required.');
  268. if(get_magic_quotes_gpc()) $value = stripslashes($value);
  269. $POST[$key] = $value;
  270. }
  271. // Check for "http://" in the new domain
  272. if(stripos($POST['new_domain'], 'http://') !== false) {
  273. // Let them correct this instead of assuming it's correct and removing the "http://".
  274. throw new Exception('The "New Domain" field must not contain "http://"');
  275. }
  276. // DB Connection
  277. $mysqli = @new mysqli($POST['host'], $POST['username'], $POST['password'], $POST['database']);
  278. throw new Exception('Unable to create database connection; most likely due to incorrect connection settings.');
  279. }
  280. // Escape for Database
  281. $data = array();
  282. foreach($_POST as $key => $value) {
  283. $data[$key] = $mysqli->escape_string($value);
  284. }
  285. /**
  286.   * Handle Serialized Values
  287.   *
  288.   * Before we update the options we need to find any option_values that have the
  289.   * old_domain stored within a serialized string.
  290.   */
  291. if(!$result = $mysqli->query('SELECT * FROM '.$data['prefix'].'options WHERE option_value REGEXP "s:[0-9]+:\".*'.$mysqli->escape_string(DDWordPressDomainChanger::preg_quote($POST['old_domain'])).'.*\";"')) {
  292. throw new Exception($mysqli->error);
  293. }
  294. $serialized_options = array();
  295. $options_to_exclude = '';
  296. if($result->num_rows > 0) {
  297. // Build dataset
  298. while(is_array($row = $result->fetch_assoc())) $serialized_options[] = $row;
  299.  
  300. // Build Exclude SQL
  301. foreach($serialized_options as $record) $options_to_exclude .= $record['option_id'].',';
  302. $options_to_exclude = ' WHERE option_id NOT IN('.rtrim($options_to_exclude, ',').')';
  303.  
  304. // Update Serialized Options
  305. foreach($serialized_options as $record) {
  306. $new_option_value = DDWordPressDomainChanger::serializedStrReplace($data['old_domain'], $data['new_domain'], $record['option_value']);
  307. if(!$mysqli->query('UPDATE '.$data['prefix'].'options SET option_value = "'.$mysqli->escape_string($new_option_value).'" WHERE option_id='.(int)$record['option_id'].';')) {
  308. throw new Exception($mysqli->error);
  309. }
  310. $DDWPDC->actions[] = '[Serialize Replace] Old domain ('.$data['old_domain'].') replaced with new domain ('.$data['new_domain'].') in option_name="'.$record['option_name'].'"';
  311. }
  312.  
  313. }
  314.  
  315. // Update Options
  316. if(!$mysqli->query('UPDATE '.$data['prefix'].'options SET option_value = REPLACE(option_value,"'.$data['old_domain'].'","'.$data['new_domain'].'")'.$options_to_exclude.';')) {
  317. throw new Exception($mysqli->error);
  318. }
  319. $DDWPDC->actions[] = 'Old domain ('.$data['old_domain'].') replaced with new domain ('.$data['new_domain'].') in '.$data['prefix'].'options.option_value';
  320. // Update Post Content
  321. $result = $mysqli->query('UPDATE '.$data['prefix'].'posts SET post_content = REPLACE(post_content,"'.$data['old_domain'].'","'.$data['new_domain'].'");');
  322. if(!$result) {
  323. throw new Exception($mysqli->error);
  324. } else {
  325. $DDWPDC->actions[] = 'Old domain ('.$data['old_domain'].') replaced with new domain ('.$data['new_domain'].') in '.$data['prefix'].'posts.post_content';
  326. }
  327. // Update Post GUID
  328. $result = $mysqli->query('UPDATE '.$data['prefix'].'posts SET guid = REPLACE(guid,"'.$data['old_domain'].'","'.$data['new_domain'].'");');
  329. if(!$result) {
  330. throw new Exception($mysqli->error);
  331. } else {
  332. $DDWPDC->actions[] = 'Old domain ('.$data['old_domain'].') replaced with new domain ('.$data['new_domain'].') in '.$data['prefix'].'posts.guid';
  333. }
  334. // Update post_meta
  335. $result = $mysqli->query('UPDATE '.$data['prefix'].'postmeta SET meta_value = REPLACE(meta_value,"'.$data['old_domain'].'","'.$data['new_domain'].'");');
  336. if(!$result) {
  337. throw new Exception($mysqli->error);
  338. } else {
  339. $DDWPDC->actions[] = 'Old domain ('.$data['old_domain'].') replaced with new domain ('.$data['new_domain'].') in '.$data['prefix'].'postmeta.meta_value';
  340. }
  341. // Update "upload_path"
  342. $upload_dir = dirname(__FILE__).'/wp-content/uploads';
  343. $result = $mysqli->query('UPDATE '.$data['prefix'].'options SET option_value = "'.$upload_dir.'" WHERE option_name="upload_path";');
  344. if(!$result) {
  345. throw new Exception($mysqli->error);
  346. } else {
  347. $DDWPDC->actions[] = 'Option "upload_path" has been changed to "'.$upload_dir.'"';
  348. }
  349. }
  350. } catch (Exception $exception) {
  351. $DDWPDC->errors[] = $exception->getMessage();
  352. }
  353. }
  354. ?>
  355. <html>
  356. <head>
  357. <title>WordPress Domain Changer by Daniel Doezema </title>
  358. <script type="text/javascript" language="Javascript">
  359. window.onload = function() {
  360. if(document.getElementById('seconds')) {
  361. window.setInterval(function() {
  362. var seconds_elem = document.getElementById('seconds');
  363. var bar_elem = document.getElementById('bar');
  364. var seconds = parseInt(seconds_elem.innerHTML);
  365. var percentage = Math.round(seconds / <?php echo DDWPDC_COOKIE_LIFETIME + 5; ?> * 100);
  366. var bar_color = '#00FF19';
  367. if(percentage < 25) {
  368. bar_color = 'red';
  369. } else if (percentage < 75) {
  370. bar_color = 'yellow';
  371. }
  372. if(seconds <= 0) window.location.reload();
  373. bar_elem.style.width = percentage + '%';
  374. bar_elem.style.backgroundColor = bar_color;
  375. seconds_elem.innerHTML = --seconds;
  376. }, 1000);
  377. }
  378. }
  379. </script>
  380. <style type="text/css">
  381. body {font:14px Tahoma, Arial;}
  382. div.clear {clear:both;}
  383. h1 {padding:0; margin:0;}
  384. h2, h3 {padding:0; margin:0 0 15px 0;}
  385. form { display:block; padding:10px; margin-top:15px; background-color:#FCFCFC; border:1px solid gray;}
  386. form label {font-weight:bold;}
  387. form div {margin:0 15px 15px 0;}
  388. form div input {width:80%;}
  389. #left {width:35%;float:left;}
  390. #right {margin-top:5px;float:right; width:63%; text-align:left;}
  391. div.log {padding:5px 10px; margin:10px 0;}
  392. div.error { background-color:#FFF8F8; border:1px solid red;}
  393. div.notice { background-color:#FFFEF2; border:1px solid #FDC200;}
  394. div.action { background-color:#F5FFF6; border:1px solid #01BE14;}
  395. #timeout {padding:5px 10px 10px 10px; background-color:black; color:white; font-weight:bold;position:absolute;top:0;right:10px;}
  396. #bar {height:10px;margin:5px 0 0 0;}
  397. </style>
  398. </head>
  399. <body>
  400. <h1>WordPress Domain Changer <iframe src="http://ghbtns.com/github-btn.html?user=veloper&repo=WordPress-Domain-Changer&type=watch&count=true"
  401. allowtransparency="true" frameborder="0" scrolling="0" width="110px" height="20px"></iframe></h1>
  402. <span>By <a href="http://dan.doezema.com" target="_blank">Daniel Doezema</a></span>
  403. <div class="body">
  404. <?php if($is_authenticated): ?>
  405. <div id="timeout">
  406. <div>You have <span id="seconds"><?php echo ((int) $_COOKIE[DDWPDC_COOKIE_NAME_EXPIRE] + 5) - time(); ?></span> Seconds left in this session.</div>
  407. <div id="bar"></div>
  408. </div>
  409. <div class="clear"></div>
  410. <div id="left">
  411. <form method="post" action="<?php echo basename(__FILE__); ?>">
  412. <h3>Database Connection Settings</h3>
  413. <blockquote>
  414. <?php
  415. // Try to Auto-Detect Settings from wp-config.php file and pre-populate fields.
  416. if($DDWPDC->isConfigLoaded()) $DDWPDC->actions[] = 'Attempting to auto-detect form field values.';
  417. ?>
  418. <label for="host">Host</label>
  419. <div><input type="text" id="host" name="host" value="<?php echo $DDWPDC->getConfigConstant('DB_HOST'); ?>" /></div>
  420.  
  421. <label for="username">User</label>
  422. <div><input type="text" id="username" name="username" value="<?php echo $DDWPDC->getConfigConstant('DB_USER'); ?>" /></div>
  423.  
  424. <label for="password">Password</label>
  425. <div><input type="text" id="password" name="password" value="<?php echo $DDWPDC->getConfigConstant('DB_PASSWORD'); ?>" /></div>
  426.  
  427. <label for="database">Database Name</label>
  428. <div><input type="text" id="database" name="database" value="<?php echo $DDWPDC->getConfigConstant('DB_NAME'); ?>" /></div>
  429.  
  430. <label for="prefix">Table Prefix</label>
  431. <div><input type="text" id="prefix" name="prefix" value="<?php echo $DDWPDC->getConfigTablePrefix(); ?>" /></div>
  432. </blockquote>
  433.  
  434. <label for="old_domain">Old Domain</label>
  435. <div>http://<input type="text" id="old_domain" name="old_domain" value="<?php echo $DDWPDC->getOldDomain(); ?>" /></div>
  436.  
  437. <label for="new_domain">New Domain</label>
  438. <div>http://<input type="text" id="new_domain" name="new_domain" value="<?php echo $DDWPDC->getNewDomain(); ?>" /></div>
  439.  
  440. <input type="submit" id="submit_button" name="submit_button" value="Change Domain!" />
  441. </form>
  442. </div>
  443. <div id="right">
  444. <?php if(count($DDWPDC->errors) > 0): foreach($DDWPDC->errors as $error): ?>
  445. <div class="log error"><strong>Error:</strong> <?php echo $error; ?></div>
  446. <?php endforeach; endif; ?>
  447.  
  448. <?php if(count($DDWPDC->notices) > 0): foreach($DDWPDC->notices as $notice): ?>
  449. <div class="log notice"><strong>Notice:</strong> <?php echo $notice; ?></div>
  450. <?php endforeach; endif; ?>
  451.  
  452. <?php if(count($DDWPDC->actions) > 0): foreach($DDWPDC->actions as $action): ?>
  453. <div class="log action"><strong>Action: </strong><?php echo $action; ?></div>
  454. <?php endforeach; endif; ?>
  455. </div>
  456. <?php else: ?>
  457. <?php if(isset($_POST['auth_password'])): ?>
  458. <div class="log error"><strong>Error:</strong> Incorrect password, please try again.</div>
  459. <?php endif; ?>
  460. <form id="login" name="login" method="post" action="<?php echo basename(__FILE__); ?>">
  461. <h3>Authenticate</h3>
  462. <label for="auth_password">Password</label>
  463. <input type="password" id="auth_password" name="auth_password" value="" />
  464. <input type="submit" id="submit_button" name="submit_button" value="Submit!" />
  465. </form>
  466. <?php endif; ?>
  467. </div>
  468. </body>
  469. </html>

URL: https://github.com/Helsingin-kaupungin-tietokeskus/wordpress/blob/master/wp-change-domain.php

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.