Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Move Wordpress to New Server

define('WP_SITEURL', 'http://www.NEW-DOMAIN.com');<br>
define('WP_HOME', 'http://www.NEW-DOMAIN.com');


UPDATE wp_options SET option_value = replace(option_value, 'http://www.old-domain.com', 'http://www.new-domain.com') WHERE option_name = 'home' OR option_name = 'siteurl';


UPDATE wp_posts SET guid = replace(guid, 'http://www.old-domain.com','http://www.new-domain.com');

UPDATE wp_posts SET post_content = replace(post_content, 'http://www.old-url.com', 'http://www.new-url.com');
Comment

PREVIOUS NEXT
Code Example
Php :: array to string conversion in laravel controller 
Php :: relationship in laravel 
Php :: create an email addresses php 
Php :: Laravel render stuff in a given environment 
Php :: laravel withValidator 
Php :: codeigniter crud generator 
Php :: multiple value match in array php 
Php :: input if not null laravel 
Php :: where is cache file in laravel 
Php :: php loop object keys 
Php :: check box with value in php 
Php :: eloquent relationships 
Php :: laravel send data with a redirect 
Php :: laravel 9 requirements 
Php :: phpspreadsheet 
Php :: string to lowercase accentuation hyphenated 
Php :: permission for multisite in wp-config.php file 
Php :: woocommerce_rest_cannot_view 
Php :: creating custom database 
Php :: laravel This package is not auto-updated. Please set up the GitHub Hook for Packagist so that it gets updated whenever you push! 
Php :: wordpress php 
Php :: echo two variables same line php 
Php :: laravel 8 remove public folder from url 
Php :: slideshow php 
Php :: enhanced ecommerce data layer for woocommerce 
Php :: PHP number_format — Format a number with grouped thousands 
Php :: Round A Number 
Php :: list custom post in wp 
Php :: laravel query buider 
Php :: laravel import csv 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =