Skip to main content
Added .htaccess example
Source Link
Buttered_Toast
  • 2.8k
  • 1
  • 8
  • 21

When migrating a live site to local you need to do a couple of thing.

  1. update the site url, you can do this in wp_options column (phpmyadmin) or in wp-config.php
  2. You need to find and replace all instances of the old url, you can use better search replace, its a great plugin for exactly that
  3. update the .htaccess to indicate the correct path of your wordpress

That should be enough for most cases

EDIT

enter image description here

Lets say that your wordpress site is located in htdocs/mysite

The RewriteBase and RewriteRule should be like this

RewriteBase /mysite/
RewriteRule . /mysite/index.php [L]

When migrating a live site to local you need to do a couple of thing.

  1. update the site url, you can do this in wp_options column (phpmyadmin) or in wp-config.php
  2. You need to find and replace all instances of the old url, you can use better search replace, its a great plugin for exactly that
  3. update the .htaccess to indicate the correct path of your wordpress

That should be enough for most cases

When migrating a live site to local you need to do a couple of thing.

  1. update the site url, you can do this in wp_options column (phpmyadmin) or in wp-config.php
  2. You need to find and replace all instances of the old url, you can use better search replace, its a great plugin for exactly that
  3. update the .htaccess to indicate the correct path of your wordpress

That should be enough for most cases

EDIT

enter image description here

Lets say that your wordpress site is located in htdocs/mysite

The RewriteBase and RewriteRule should be like this

RewriteBase /mysite/
RewriteRule . /mysite/index.php [L]
Source Link
Buttered_Toast
  • 2.8k
  • 1
  • 8
  • 21

When migrating a live site to local you need to do a couple of thing.

  1. update the site url, you can do this in wp_options column (phpmyadmin) or in wp-config.php
  2. You need to find and replace all instances of the old url, you can use better search replace, its a great plugin for exactly that
  3. update the .htaccess to indicate the correct path of your wordpress

That should be enough for most cases