Multi-server environment is causing problems in WordPress

here is the solution!

http://www.iconwebsolutions.info/wordpress-admin-prevnext-page-links-still-pointing-to-the-old-site/

Open the file wp-admin/includes/class-wp-list-table.php

Search for ‘function pagination’
You will find below line of code to set the current url
$current_url = set_url_scheme( ‘http://’ . $_SERVER[‘HTTP_HOST’] . $_SERVER[‘REQUEST_URI’] );

$current_url is built using $_SERVER[‘HTTP_HOST’] which will not work for the servers running under proxies
so change this URL or basically hardcode it with your server URL as below:

$current_url = set_url_scheme( ‘http://serverurl.com’ . $_SERVER[‘REQUEST_URI’] );