Title: wpdngi's Replies | WordPress.org

---

# wpdngi

  [  ](https://wordpress.org/support/users/wpdngi/)

 *   [Profile](https://wordpress.org/support/users/wpdngi/)
 *   [Topics Started](https://wordpress.org/support/users/wpdngi/topics/)
 *   [Replies Created](https://wordpress.org/support/users/wpdngi/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/wpdngi/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/wpdngi/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/wpdngi/engagements/)
 *   [Favorites](https://wordpress.org/support/users/wpdngi/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Circular redirects with some clients: parse_url and ports](https://wordpress.org/support/topic/circular-redirects-with-some-clients-parse_url-and-ports/)
 *  [wpdngi](https://wordpress.org/support/users/wpdngi/)
 * (@wpdngi)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/circular-redirects-with-some-clients-parse_url-and-ports/#post-985190)
 * Site runs on $_SERVER[“SERVER_PORT”] = 83.
    Other site info: PHP Version 5.2.5
   SunOS vhost 5.10 Generic_137111-06 sun4u Server API Apache 2.0 Handler WordPress
   2.7.1
 * 1. After fresh install, WP Homepage takes very long time to load.
    [http://www.energy.wisc.edu/v2/](http://www.energy.wisc.edu/v2/)
 * 2. The “Hello world!” URL, includes port :83 (as do all other internal URLs):
   
   [http://www.energy.wisc.edu:83/v2/?p=1](http://www.energy.wisc.edu:83/v2/?p=1)
   A. Clicking this URL returns: “The connection has timed out” B. Removing the 
   port from the URL does load the page, but still takes long time to load: [http://www.energy.wisc.edu/v2/?p=1](http://www.energy.wisc.edu/v2/?p=1)
 * I tried changing line 259 of wp-includes/canonical.php
 * from:
 * if ( !empty( $original[‘port’] ) && $original[‘port’] != 80 )
 * to both of the following, after which the error still occurred:
    if ( !empty(
   $original[‘port’] ) && $original[‘port’] != $_SERVER[“SERVER_PORT”] ) if ( !empty(
   $original[‘port’] ) && $original[‘port’] != 83 )
 * I also commented out line 275 which looks like it’s the line that actually adds
   the port to the URLs, but that didn’t work either:
 * wp-includes/canonical.php (line 275-276(
    # if ( !empty($redirect[‘port’]) ) #
   $redirect_url .= ‘:’ . $redirect[‘port’];
 * And, tried all these as well, none of which worked:
    commented out: lines 202-
   205 (didn’t remove port from login page) lines 259-260 (didn’t remove port from
   login page) lines 267-268 (didn’t remove port from login page) lines 275-276 (
   didn’t remove port from login page)
 * What’s causing this problem? Thanks for any help.

Viewing 1 replies (of 1 total)