Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter fandango89

    (@fandango89)

    Really, no one knows how to solve this problem?

    Thread Starter fandango89

    (@fandango89)

    Hi dbough,

    1.)On the new server, installed clean wordpress
    2.)I removed the wp-content folder
    3.)I moved wp-content folder from the old server to the new server
    4.)In phpadmin removed and replaced the database I created a copy of it on the old server
    5.)I updated the address of the query to the database:

    KOD #1
    
    UPDATE wp_options SET option_value = replace(option_value,
    'http://old-domain.com', 'http://new-domain.com')
    WHERE option_name = 'home' OR option_name = 'siteurl';
    
    KOD #2
    
    UPDATE wp_posts SET guid =
    replace(guid, 'http://old-domain.com','http://new-domain.com');
    
    KOD #3
    
    UPDATE wp_posts SET post_content = replace(post_content, 'http://old-domain.com', 'http://new-domain.com');

    6.)Added to the htaccess code:

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^.old-domain.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www.old-domain.com
    RewriteRule ^/?(.*)$ "http://www.new-domain.com/$1" [R=301,L]

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