[patch] Improve support for IIS-style WordPress URLs
|Reported by:||bsweeney||Owned by:|
I'm working to implement BuddyPress on a Windows server using IIRF to support URL rewriting. There is an issue, however, in the way IIRF passes URLs back to IIS for further processing. When BuddyPress looks at the URL it sees the index.php portion and includes it as part of the path.
A simple patch to bp-core-catchuri.php seems to fix this, see the attached diff. I think modification would move BuddyPress closer to full support for IIS. The fix is rather simplistic in that it looks for the presence of index.php. It might be a good idea to make this an optional setting.
Ideally, I would like to also see BuddyPress modified to take into account the permalink structure used by WordPress on IIS when no URL rewriting is available. That would require the inclusion of index.php at the front of any BuddyPress-generated URLs. This could be enabled by the same setting that enables the above fix.
I plan to stick with IIRF, but these changes might help others attempting to implement BP on IIS.
Change History (9)
comment:2 paulhastings0 — 3 years ago
- Summary changed from Improve support for IIS-style Wordpress URLs to [patch] Improve support for IIS-style Wordpress URLs
comment:3 paulhastings0 — 3 years ago
- Summary changed from [patch] Improve support for IIS-style Wordpress URLs to [patch] Improve support for IIS-style WordPress URLs