• I needed to redirect from an old blog structure (posts ending in php) to a new (posts as directories). This worked great for that using a regular expression, when all my efforts at modifying .htaccess failed.

    However, there’s a “delete everything” button at the bottom of the options page that’s the same color as “update” a little above it and doesn’t pop up any warnings (unlike deleting redirects individually from the main page), which I found out the hard way. Fortunately I only had a few redirects to recreate, but that really deserves more of a warning to the user.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Katenepveu,
    I’m also using the Redirection Plugin to redirect from an old blog structure (posts ending in aspx). How exactly do you do this? I can’t figure out how to use a Wildcard. Any help would be appreciated. thanks!

    Thread Starter katenepveu

    (@katenepveu)

    Sure.

    My old blog was

    (domain)/weblog/yyyy/mm/post.php

    So the source URL is

    /weblog?/(\d*)?/(\d*)?/(.*).php

    and the target URL is

    /weblog/\1/\2/\3/

    which takes the directory and patterns matched in the source (all three of them, in the same order them came) and returns just them, without the .php on the end.

    If your blog wasn’t in a subdirectory, remove that part at the front; and obviously replace the php with aspx!

    Thank you SO much for your response. It is still not working for me – something must be wrong in my source because it’s not even trying to redirect. Would you mind helping again? My old structure looked like this:

    blog.domain.com/yyyy/mm/dd/post.aspx
    and my new structure: blog.domain.com/yyyy/mm/dd/post/

    Here is what I’m putting in Redirection:
    source: /(\d*)?/(\d*)?/(\d*)?/(.*).aspx
    target:/\1/\2/\3/\4/

    I have also tried source: /(\d*)?/(\d*)?/(\d*)?/(*).aspx and that doesn’t work either. Any help is greatly appreciated!

    Thread Starter katenepveu

    (@katenepveu)

    If you’ve made sure that you have “regular expression” checked, then I’ve got nothing–regexs are not at all my strength, I copy-pasted this from somewhere else on the web that I can’t find any more. Sorry–try the actual support forum?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘saved me a lot of trouble’ is closed to new replies.