[wp-trac] [WordPress Trac] #14904: Install page not redirecting to wp-admin/ on IIS6

WordPress Trac wp-trac at lists.automattic.com
Tue Sep 28 06:20:18 UTC 2010


#14904: Install page not redirecting to wp-admin/ on IIS6
-----------------------------+----------------------------------------------
 Reporter:  knutsp           |       Owner:                 
     Type:  defect (bug)     |      Status:  new            
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Upgrade/Install  |     Version:  3.0.1          
 Severity:  normal           |    Keywords:                 
-----------------------------+----------------------------------------------

Comment(by dd32):

 > The first thing is that his means that in case the server is IIS the
 redirect method should be the "Refresh" header. Othwerwise the redirect
 method should be the "Location" header. This is strange, because the
 Location header also works on IIS.

 Thats an IIS5 thing, IIRC, It doesn't support the Location header, or
 does, but due to other bugs, you're required to use the Refresh header.
 There's another ticket discussing this, and ultimately, I feel IIS5
 support should be dropped entirely.

 > The third thing is that, on my system, when a redirect is done with a
 relative URL, the redirect is done "internally". This means that the
 browser will not know that actual resource served to it. But, strangely,
 the IIS log file shows the actual wp-admin/install.php as being requested.
 This is very, very strange to me, and I have no explaination. I have no
 other IIS6 systems to etst this on.

 Sounds strange, but that confirms what I was thinking, The redirect wasn't
 happening to the browser, so the form wasn't getting a correct URL.

 WP_SITEURL is never defined by WordPress, This is a constant which can be
 defined in wp-config.php to override WordPress's database option site_url.

 I think there are 2 things that need to be done here, And both are covered
 by other tickets:
   * Force all redirects to be absolute (whether that be by removing the
 relative calls and fixing them, or handling it internally in wp_redirect)
 - #14062
   * Remove the Refresh header entirely, and leave it for a Plugin to
 support if required? - #10187

 I think we can close this ticket as a duplicate of those if fixing those
 will resolve the problems here.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14904#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list