Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Legacy redirects on sub-directory installs include the site slug. #9

Open
peterwilsoncc opened this issue Jun 28, 2019 · 1 comment

Comments

@peterwilsoncc
Copy link

When enabling legacy redirects on a sub-directory install, the redirect goes to the alias domain + path.

Alias: customdomain.com
Site URL: msinstall.com/sub-site/
Redirects to: customdomain.com/sub-site/

The issue appears to come from these lines, as the site path ought to be excluded on sub-directory installs.

if ( $_SERVER['HTTP_HOST'] !== $mapping->get_domain() ) {
$domain = $mapping->get_domain();
$path = $mapping->get_site()->path;
redirect( $domain . $path );
} else {

@peterwilsoncc
Copy link
Author

Looks like it is the redirect() function instead, patch in coming.

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

No branches or pull requests

1 participant