[wp-trac] [WordPress Trac] #13164: 'Older posts' broken with IIS and Permalinks enabled

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 1 11:23:29 UTC 2010

#13164: 'Older posts' broken with IIS and Permalinks enabled
 Reporter:  thushanfernando  |       Owner:  ryan           
     Type:  defect (bug)     |      Status:  new            
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Permalinks       |     Version:                 
 Severity:  normal           |    Keywords:                 

Comment(by blogurc):

 I am also seeing this issue on IIS, where the pagination link for this URL
 is broken:
 (whereas if I alter the original URL to
 http://example.com/index.php?s=gospel , the pagination is fine)

 I also tracked it down to the same line, and can be fixed by the suggested
 fix above:
 $request = preg_replace( '/|^index\.php|/i', '', $request);

 This is because under IIS, in the function add_query_arg() [in
 functions.php], the variable $_SERVER['REQUEST_URI'] returns
 /Index.php?s=gospel for the request above.

Ticket URL: <http://core.trac.wordpress.org/ticket/13164#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list