• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Bizarre Post Redirection

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Bizarre Post Redirection

This topic is: resolved

Tagged: redirection

  • This topic has 11 replies, 3 voices, and was last updated 9 years, 5 months ago by bionary.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • January 1, 2016 at 12:55 pm #175335
    bionary
    Member

    To my chagrin, I noticed that a few of my posts are redirecting to posts with similar urls. At first I though it was an .htaccess directive but I looked into it and it is not. (that would have been too easy of course!)

    For example: http://helloartsy.com/how-to-draw-a-cone
    redirects to: http://helloartsy.com/how-to-draw-a-cone-video/

    but you can see the url change when to page first loads so I'm thinking it has to do with wordpress itself?

    This is really weird...any ideas?

    I'm running genesis:beautiful theme

    Thanks

    http://helloartsy.com
    January 2, 2016 at 8:10 am #175382
    Victor Font
    Moderator

    If you take a look at the first URL at http://redirectdetective.com/, it is reporting a 301 Permanent Redirect to the second URL. 301 redirects are created either by plugins or directives in htaccess.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    January 2, 2016 at 8:58 am #175384
    bionary
    Member

    That's a good tool, thanks Victor.
    Here's where things get really weird which leads me to believe this is happening inside WP and not .htaccess.
    If I change the url of the final destination (ie: helloartsy.com/abc) ... it still gets redirected there.
    This is very weird.

    January 2, 2016 at 9:06 am #175386
    bionary
    Member

    I just figured out EXACTLY what wordpress is doing but I'm not sure how to fix it.
    WordPress is automatically redirecting all urls (slugs) that where changed.
    For example if I had a post called: site.com/abc and later changed it to site.com/123 visiting site.com/abc will automatically redirect (301) to the new url: site.com/123.

    The problem is wp is not smart enough to realize when another post is made using the old slug and NOT do the redirect.

    My url: helloartsy.com/how-to-draw-a-cone-video used to be named: helloartsy.com/how-to-draw-a-cone

    How on earth do I fix this?

    January 2, 2016 at 9:55 am #175387
    Victor Font
    Moderator

    WordPress Ver. 2.3 introduced a feature called canonical URLS. The goal was to make WordPress automatically redirect requests to the correct (canonical) URL for that resource. You can disable this by adding remove_filter('template_redirect', 'redirect_canonical'); to your functions.php.

    You could also try resaving your permalinks. I don't know if either of these will help, but it won't hurt to try.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    January 2, 2016 at 9:59 am #175388
    bionary
    Member

    I just tried resaving each url and that doesn't work. The removing filter seems like the nuclear option as it will destroy all the good effects of this "feature" and will probably break many links.

    January 2, 2016 at 10:08 am #175389
    Christoph
    Member

    Hi,

    this is a bug in WordPress.
    https://core.trac.wordpress.org/ticket/35031
    It is scheduled to be fixed in WordPress 4.4.1.


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    January 2, 2016 at 10:11 am #175390
    bionary
    Member

    wow, impressive Chris. Do the say when that will be released?

    January 2, 2016 at 10:14 am #175392
    Christoph
    Member

    I believe the plan is for the middle/end of the coming week.


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    January 2, 2016 at 10:15 am #175394
    bionary
    Member

    cool, I'll just wait it out.
    Thank you.

    (that is a very destructive bug on my site...as I had changed many slugs early on)

    January 2, 2016 at 10:22 am #175399
    Christoph
    Member

    If you don't want to wait, you could manually add the changes to /wp-includes/query.php into your WordPress installation:
    https://core.trac.wordpress.org/changeset/36129


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    January 2, 2016 at 10:23 am #175400
    bionary
    Member

    Thanks!

  • Author
    Posts
Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Bizarre Post Redirection’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble