Skip to content

Instantly share code, notes, and snippets.

@bdeleasa
Created April 12, 2016 18:38
Show Gist options
  • Select an option

  • Save bdeleasa/7f1ca94c146ce772eefa1c39b2b2ecec to your computer and use it in GitHub Desktop.

Select an option

Save bdeleasa/7f1ca94c146ce772eefa1c39b2b2ecec to your computer and use it in GitHub Desktop.
Disable Canonical URL Redirection WP Plugin
<?php
/*
Plugin Name: Disable Canonical URL Redirection
Description: Disables the "Canonical URL Redirect" features of WordPress 2.3 and above.
Version: 1.0
Author: Brianna Deleasa
Author URI: http://chooserethink.com
*/
remove_filter('template_redirect', 'redirect_canonical');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment