WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been working on a wordpress site and run into the automatic redirect feature when you change a slug. On the current site I am using the Redirects plugin, and was able to modify the redirects so that I could reuse slugs that had been altered without getting the infinite loop problem.

My company has a similar wordpress site that is not using the Redirects plugin. I am curious to know how I would be able to remove a redirect from a slug that WordPress has put into place without installing Redirects. From my understanding, it's in the database somewhere, but I'm not sure where to look.

share|improve this question

There's a canonical_redirect, or redirect_canonical function, which gets hooked onto template_redirect. Just remove it using remove_action() in your config file or your theme's functions file...

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.