Skip to content

Instantly share code, notes, and snippets.

@antoniopresto
Created April 24, 2019 22:31
Show Gist options
  • Save antoniopresto/05c7b9700ed9af2fd63b22d70a22461e to your computer and use it in GitHub Desktop.
Save antoniopresto/05c7b9700ed9af2fd63b22d70a22461e to your computer and use it in GitHub Desktop.
prevent wordpress redirect subdomain
//...
remove_filter('template_redirect', 'redirect_canonical');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment