Opened 9 years ago
Closed 9 years ago
#35558 closed defect (bug) (fixed)
Multiple WP sites in subfolders on IIS may break permalinks
Reported by: | WiZZarD_ | Owned by: | johnbillion |
---|---|---|---|
Milestone: | 4.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Rewrite Rules | Keywords: | has-patch needs-refresh |
Focuses: | Cc: |
Description
When installing WP in a subfolder of an existing blog you will end up breaking the site in the subfolder after enabling permalinks. This is caused by a duplicate name in the rewrite rule for the different folders. The easiest way to fix this would be to change the rule name by adding a site-specific identifier.
I've added a patch that uses get_bloginfo( 'wpurl' )
to create a unique identifier. Also, I've corrected the capitalization of WordPress, since it was all lowercase.
Attachments (2)
Change History (9)
#2
@
9 years ago
- Keywords needs-testing removed
Works like a charm. After deleting the existing web.config and applying the patch, the correct web.config is written when setting a new-permalink structure.
This ticket was mentioned in Slack in #core by wizzard. View the logs.
9 years ago
#4
@
9 years ago
- Keywords needs-refresh added
- Milestone changed from Awaiting Review to 4.5
Thanks for the patch, @WiZZarD_ (and welcome to WordPress Trac).
A slight improvement would be to use "WordPress: ' . home_url() . '"
to avoid using any natural language, and to use the newer home_url()
function which is now preferred over get_bloginfo()
. Apart from that, this change makes sense.
patch for class-wp-rewrite.php