Skip to content

Conversation

@benmAltDesign
Copy link
Collaborator

…ther the enhanced multisite support is disabled.

URISupport.php - Added a function to filter the site URL off the URIs, EG "/fr" subsite would be filtered from "/fr/page" to "/page" before redirect being checked.

CheckForRedirects.php - Added in optional subsite URI filtering based on config. Added in optional augmentation of the redirect URI, if enabled the redirect URL has the subsite url prepended in.

Full flow EG :

"/fr/old" has it's subsite URI stripped to "/old"

Redirect is processed like normal, EG: "/old" -> "/new"

then on the way out "/new" has the site prepended to "/fr/new" and this is used in the redirect.

…ther the enhanced multisite support is disabled.

URISupport.php - Added a function to filter the site URL off the URIs, EG "/fr" subsite would be filtered from "/fr/page" to "/page" before redirect being checked.

CheckForRedirects.php - Added in optional subsite URI filtering based on config. Added in optional augmentation of the redirect URI, if enabled the redirect URL has the subsite url prepended in.

Full flow EG :

"/fr/old" has it's subsite URI stripped to "/old"

Redirect is processed like normal, EG: "/old" -> "/new"

then on the way out "/new" has the site prepended to "/fr/new" and this is used in the redirect.
@benmAltDesign benmAltDesign changed the title alt-redirect.php - added 'disable-enhanced-multisite' key to flag whe… v2 feature merge - Enhance multisite support for multisites with a different URL on the same domain Apr 11, 2025
@benmAltDesign benmAltDesign changed the title v2 feature merge - Enhance multisite support for multisites with a different URL on the same domain v2 feature merge - Enhanced multisite support for multisites with a different URL on the same domain Apr 11, 2025
Documentation changes for v2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants