Skip to main content
added 87 characters in body
Source Link

My development computer recently had to be rebuilt so I am now trying to migrate a WordPress site from the hosting company to my development PC. So far I have done this:

  1. Installed XAMPP.

  2. Download the PHP files using FTP and put them in htdocs\mysite

  3. Create a virtual host called: localhost.MySite.

  4. Export the .sql from the host using PHPMyAdmin

  5. Open the .sql and to a find and replace replacing: www.mysite.co.uk with: localhost.MySite

  6. Use PHPMyAdmin on my local PC to load the .sql

  7. Make changes to wp_config.php:

    define('WP_HOME', 'http://localhost/mysite');
    define('WP_SITEURL', 'http://localhost/mysite');
    

Everything appeared to work e.g. the multi sites; the admin panel etc. The only issue I have is when I logout of the admin panel; I am redirected to: http://wp-login.php/?loggedout=true instead of: http://localhost.MySite/wp-login.php/?loggedout=true. What can I do?

I have spent a while Googling this e.g. I have looked here: https://wordpress.org/support/topic/logout-redirect-not-working-3/page/2/

This issue does not happen on the live website.

Update

I only appear to have theis issue on the root site of the multi site.

My development computer recently had to be rebuilt so I am now trying to migrate a WordPress site from the hosting company to my development PC. So far I have done this:

  1. Installed XAMPP.

  2. Download the PHP files using FTP and put them in htdocs\mysite

  3. Create a virtual host called: localhost.MySite.

  4. Export the .sql from the host using PHPMyAdmin

  5. Open the .sql and to a find and replace replacing: www.mysite.co.uk with: localhost.MySite

  6. Use PHPMyAdmin on my local PC to load the .sql

  7. Make changes to wp_config.php:

    define('WP_HOME', 'http://localhost/mysite');
    define('WP_SITEURL', 'http://localhost/mysite');
    

Everything appeared to work e.g. the multi sites; the admin panel etc. The only issue I have is when I logout of the admin panel; I am redirected to: http://wp-login.php/?loggedout=true instead of: http://localhost.MySite/wp-login.php/?loggedout=true. What can I do?

I have spent a while Googling this e.g. I have looked here: https://wordpress.org/support/topic/logout-redirect-not-working-3/page/2/

This issue does not happen on the live website.

My development computer recently had to be rebuilt so I am now trying to migrate a WordPress site from the hosting company to my development PC. So far I have done this:

  1. Installed XAMPP.

  2. Download the PHP files using FTP and put them in htdocs\mysite

  3. Create a virtual host called: localhost.MySite.

  4. Export the .sql from the host using PHPMyAdmin

  5. Open the .sql and to a find and replace replacing: www.mysite.co.uk with: localhost.MySite

  6. Use PHPMyAdmin on my local PC to load the .sql

  7. Make changes to wp_config.php:

    define('WP_HOME', 'http://localhost/mysite');
    define('WP_SITEURL', 'http://localhost/mysite');
    

Everything appeared to work e.g. the multi sites; the admin panel etc. The only issue I have is when I logout of the admin panel; I am redirected to: http://wp-login.php/?loggedout=true instead of: http://localhost.MySite/wp-login.php/?loggedout=true. What can I do?

I have spent a while Googling this e.g. I have looked here: https://wordpress.org/support/topic/logout-redirect-not-working-3/page/2/

This issue does not happen on the live website.

Update

I only appear to have theis issue on the root site of the multi site.

Formatting
Source Link
MrWhite
  • 3.9k
  • 1
  • 19
  • 22

My development computer recently had to be rebuilt so I am now trying to migrate a WordpressWordPress site from the hosting company to my development PC. So far I have done this:

  1. Installed XAMPP.

  2. Download the phpPHP files using FTP and put them in htdocs\mysitehtdocs\mysite

  3. Create a virtual host called: localhost.MySitelocalhost.MySite.

  4. Export the .sql from the host using PHPMyAdmin

  5. Open the .sql and to a find and replace replacing: www.mysite.co.ukwww.mysite.co.uk with: localhost.MySitelocalhost.MySite

  6. Use PHPMyAdmin on my local PC to load the .sql

  7. Make changes to wp_config.php:

    define('WP_HOME', 'http://localhost/mysite'); define('WP_SITEURL', 'http://localhost/mysite');

    define('WP_HOME', 'http://localhost/mysite');
    define('WP_SITEURL', 'http://localhost/mysite');
    

Everything appeared to work e.g. the multi sites; the admin panel etc. The only issue I have is when I logout of the admin panel; I am redirected to: http://wp-login.php/?loggedout=true insteadhttp://wp-login.php/?loggedout=true instead of: http://localhost.MySite/wp-login.php/?loggedout=truehttp://localhost.MySite/wp-login.php/?loggedout=true. What can I do.?

I have spent a while Googling this e.g. I have looked here: https://wordpress.org/support/topic/logout-redirect-not-working-3/page/2/

This issue does not happen on the live website.

My development computer recently had to be rebuilt so I am now trying to migrate a Wordpress site from the hosting company to my development PC. So far I have done this:

  1. Installed XAMPP.

  2. Download the php files using FTP and put them in htdocs\mysite

  3. Create a virtual host called: localhost.MySite.

  4. Export the .sql from the host using PHPMyAdmin

  5. Open the .sql and to a find and replace replacing: www.mysite.co.uk with: localhost.MySite

  6. Use PHPMyAdmin on my local PC to load the .sql

  7. Make changes to wp_config.php:

    define('WP_HOME', 'http://localhost/mysite'); define('WP_SITEURL', 'http://localhost/mysite');

Everything appeared to work e.g. the multi sites; the admin panel etc. The only issue I have is when I logout of the admin panel; I am redirected to: http://wp-login.php/?loggedout=true instead of: http://localhost.MySite/wp-login.php/?loggedout=true. What can I do.

I have spent a while Googling this e.g. I have looked here: https://wordpress.org/support/topic/logout-redirect-not-working-3/page/2/

This issue does not happen on the live website.

My development computer recently had to be rebuilt so I am now trying to migrate a WordPress site from the hosting company to my development PC. So far I have done this:

  1. Installed XAMPP.

  2. Download the PHP files using FTP and put them in htdocs\mysite

  3. Create a virtual host called: localhost.MySite.

  4. Export the .sql from the host using PHPMyAdmin

  5. Open the .sql and to a find and replace replacing: www.mysite.co.uk with: localhost.MySite

  6. Use PHPMyAdmin on my local PC to load the .sql

  7. Make changes to wp_config.php:

    define('WP_HOME', 'http://localhost/mysite');
    define('WP_SITEURL', 'http://localhost/mysite');
    

Everything appeared to work e.g. the multi sites; the admin panel etc. The only issue I have is when I logout of the admin panel; I am redirected to: http://wp-login.php/?loggedout=true instead of: http://localhost.MySite/wp-login.php/?loggedout=true. What can I do?

I have spent a while Googling this e.g. I have looked here: https://wordpress.org/support/topic/logout-redirect-not-working-3/page/2/

This issue does not happen on the live website.

Source Link

Why is the domain name missing from the logout redirect?

My development computer recently had to be rebuilt so I am now trying to migrate a Wordpress site from the hosting company to my development PC. So far I have done this:

  1. Installed XAMPP.

  2. Download the php files using FTP and put them in htdocs\mysite

  3. Create a virtual host called: localhost.MySite.

  4. Export the .sql from the host using PHPMyAdmin

  5. Open the .sql and to a find and replace replacing: www.mysite.co.uk with: localhost.MySite

  6. Use PHPMyAdmin on my local PC to load the .sql

  7. Make changes to wp_config.php:

    define('WP_HOME', 'http://localhost/mysite'); define('WP_SITEURL', 'http://localhost/mysite');

Everything appeared to work e.g. the multi sites; the admin panel etc. The only issue I have is when I logout of the admin panel; I am redirected to: http://wp-login.php/?loggedout=true instead of: http://localhost.MySite/wp-login.php/?loggedout=true. What can I do.

I have spent a while Googling this e.g. I have looked here: https://wordpress.org/support/topic/logout-redirect-not-working-3/page/2/

This issue does not happen on the live website.