Support » Plugins » Hacks » redirect_guess_404_permalink and custom types

  • neon22

    (@neon22)


    I have a new wordpress version of an old site. The old site had permalinks structure of:
    website/artist_name
    The new site uses:
    website/portfolio/artist_name

    The new site uses the “Options Framework” plugin and “Portfolio Posts” plugin to create a new type of Post called a Portfolio.

    I want to redirect the old permalink structure to the new one. Its not easily done with simple rewrite rules but the Redirect plugin might work but needs constant maintaining.

    The internal function redirect_guess_404_permalink is designed to solve exactly this problem but only for Posts.
    FYI – Its in canononical.php under wp-includes.

    So two things:
    1. Can anyone help me in modifying this function so it works for custom types.
    2. Would it be a good idea for this to be a feature request for a later version of WordPress ?

Viewing 1 replies (of 1 total)
  • Thread Starter neon22

    (@neon22)

    Well I don’t know what was going on – but this now actually just works.
    Thanks to the good design of WP I guess.
    Closing issue.

Viewing 1 replies (of 1 total)
  • The topic ‘redirect_guess_404_permalink and custom types’ is closed to new replies.