Opened 18 years ago
Closed 18 years ago
#4970 closed defect (bug) (fixed)
Rewrite for Pages is broken if URL has port #
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 2.3 | Priority: | high |
| Severity: | normal | Version: | 2.3 |
| Component: | General | Keywords: | |
| Focuses: | Cc: |
Description
If I click on the link for any of my pages, in 2.3 beta 3 (beta2 had this problem too), it attempts to connect to my hostname without the port numbers afterward in order to load the page. This behavior is incorrect, and I think maybe the re-write rules are incorrect, because the link is correct - it's just redirecting wrong.
I'm going to revert my blog back to an older version of wordpress in the meantime.
Change History (4)
#2
@
18 years ago
- Owner changed from anonymous to markjaquith
- Priority changed from normal to high
I suspect the canocical redirect stuff is causing this.
Maybe it needs to check $_SERVER["SERVER_PORT"] != 80 (or 443) and include in the $requested_url:
if ( !$requested_url ) {
// build the URL in the address bar
$requested_url = ( isset($_SERVER['HTTPS'] ) && strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://';
$requested_url .= $_SERVER['HTTP_HOST'];
$requested_url .= $_SERVER['REQUEST_URI'];
}
Note: See
TracTickets for help on using
tickets.
You could give us an example link or information on how to reproduce the problem.