WordPress.org

Ready to get started?Download WordPress

Forums

Help Moving WordPress (2 posts)

  1. Firkraag85
    Member
    Posted 6 years ago #

    Hi everyone,

    I try to move the blog with the htaccess, but it gives me a lot of problem, now Google detects as duplicate content, because this:

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    
    # END WordPress

    Generates me a lot of 302 redirects, in spite of 301... Well, now I'm trying to move my blog phisically, and I have a problem with the images.

    I export my database, change siteurl and home, among others.

    My problem is on editing my database... My blog is crawled of images, many images... I want to know how to replace the directory? I'm on Windows, I use Replace of notepad.

    Before my replace:

    INSERT INTO <code>wp_zpwfk4_postmeta</code> (<code>meta_id</code>, <code>post_id</code>, <code>meta_key</code>, <code>meta_value</code>) VALUES(1758, 751, '_wp_page_template', 'default');
    INSERT INTO <code>wp_zpwfk4_postmeta</code> (<code>meta_id</code>, <code>post_id</code>, <code>meta_key</code>, <code>meta_value</code>) VALUES(1733, 348, '_wp_old_slug', 'visita-a-un-acilo-de-ancianos');
    INSERT INTO <code>wp_zpwfk4_postmeta</code> (<code>meta_id</code>, <code>post_id</code>, <code>meta_key</code>, <code>meta_value</code>) VALUES(812, 369, '_wp_attached_file', '/home/.kicking/blah85/colegioyapeyu.edu.ar/blog/wp-content/uploads/2008/05/microbiologia-14.jpg');
    INSERT INTO <code>wp_zpwfk4_postmeta</code> (<code>meta_id</code>, <code>post_id</code>, <code>meta_key</code>, <code>meta_value</code>) VALUES(813, 369, '_wp_attachment_metadata', 'a:6:{s:5:"width";i:768;s:6:"height";i:1024;s:14:"hwstring_small";s:22:"height=''96'' width=''72''";s:4:"file";s:95:"/home/.kicking/blah85/colegioyapeyu.edu.ar/blog/wp-content/uploads/2008/05/microbiologia-14.jpg";s:5:"sizes";a:2:{s:9:"thumbnail";a:3:{s:4:"file";s:28:"microbiologia-14-112x150.jpg";s:5:"width";i:112;s:6:"height";i:150;}s:6:"medium";a:3:{s:4:"file";s:28:"microbiologia-14-450x600.jpg";s:5:"width";i:450;s:6:"height";i:600;}}s:10:"image_meta";a:10:{s:8:"aperture";d:2.600000000000000088817841970012523233890533447265625;s:6:"credit";s:0:"";s:6:"camera";s:23:"Canon PowerShot A570 IS";s:7:"caption";s:0:"";s:17:"created_timestamp";i:1167990916;s:9:"copyright";s:0:"";s:12:"focal_length";d:5.79999999999999982236431605997495353221893310546875;s:3:"iso";i:200;s:13:"shutter_speed";d:0.016666666666666667850904559600166976451873779296875;s:5:"title";s:0:"";}}');

    After my replace:

    INSERT INTO <code>wp_zpwfk4_postmeta</code> (<code>meta_id</code>, <code>post_id</code>, <code>meta_key</code>, <code>meta_value</code>) VALUES(1758, 751, '_wp_page_template', 'default');
    INSERT INTO <code>wp_zpwfk4_postmeta</code> (<code>meta_id</code>, <code>post_id</code>, <code>meta_key</code>, <code>meta_value</code>) VALUES(1733, 348, '_wp_old_slug', 'visita-a-un-acilo-de-ancianos');
    INSERT INTO <code>wp_zpwfk4_postmeta</code> (<code>meta_id</code>, <code>post_id</code>, <code>meta_key</code>, <code>meta_value</code>) VALUES(812, 369, '_wp_attached_file', '/home/.kicking/blah85/cachichurris.com.ar/wp-content/uploads/2008/05/microbiologia-14.jpg');
    INSERT INTO <code>wp_zpwfk4_postmeta</code> (<code>meta_id</code>, <code>post_id</code>, <code>meta_key</code>, <code>meta_value</code>) VALUES(813, 369, '_wp_attachment_metadata', 'a:6:{s:5:"width";i:768;s:6:"height";i:1024;s:14:"hwstring_small";s:22:"height=''96'' width=''72''";s:4:"file";s:95:"/home/.kicking/blah85/cachichurris.com.ar/wp-content/uploads/2008/05/microbiologia-14.jpg";s:5:"sizes";a:2:{s:9:"thumbnail";a:3:{s:4:"file";s:28:"microbiologia-14-112x150.jpg";s:5:"width";i:112;s:6:"height";i:150;}s:6:"medium";a:3:{s:4:"file";s:28:"microbiologia-14-450x600.jpg";s:5:"width";i:450;s:6:"height";i:600;}}s:10:"image_meta";a:10:{s:8:"aperture";d:2.600000000000000088817841970012523233890533447265625;s:6:"credit";s:0:"";s:6:"camera";s:23:"Canon PowerShot A570 IS";s:7:"caption";s:0:"";s:17:"created_timestamp";i:1167990916;s:9:"copyright";s:0:"";s:12:"focal_length";d:5.79999999999999982236431605997495353221893310546875;s:3:"iso";i:200;s:13:"shutter_speed";d:0.016666666666666667850904559600166976451873779296875;s:5:"title";s:0:"";}}');

    Can you tell me please what is wrong? Why my thumbmails displays as: http://www.cachichurris.com.ar/2008/06/ilustrando-cuentos-junto-a-los-padres-del-jardin/

    In this example I used the same database in two different domains, before I tested it on same domain, and happened the same.

    Any ideas? I'll really appreciate your help, Google is crawling bad my site =( (is now moved with .htaccess)

  2. Firkraag85
    Member
    Posted 6 years ago #

    Another problem, If I move to blog folder once again... Its continuous needing .htaccess :S, before it doesn't need... Can you tell me how to fix it?

    Thanks in advance.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.