Wordpress URL Format Causing 301 Redirect Problems

Discussion in 'WordPress' started by jhmattern, Jan 26, 2010.

  1. #1
    I'm merging http://QueryFreeFreelancer.com with another blog. I've used dashes (--) in some post titles because frankly it's grammatically correct and it's a blog for writers.

    Those dashes are now causing problems.

    Wordpress automatically worked the dashes into the URLS.

    When I try to 301 redirect the posts in the htaccess file to point to their new home on another blog, it won't work. It automatically converts things to code when I paste in the URLS, so when I visit the QFF post it treats it as different and won't actually redirect the post.

    Here's an example of a post link and the post it should get redirected to:

    http://queryfreefreelancer.com/writer-platforms/30-day-marketing-bootcamp-for-freelance-writers-%e2%80%93-day-28/
    Code (markup):
    should be redirected to

    http://allfreelancewriting.com/2009/10/15/freelancing/marketing-pr/30-day-marketing-bootcamp-for-freelance-writers-%e2%80%93-day-28/
    Code (markup):
    (automatically converted the dash to code here too though)

    As you can see, the dash issue is in both links. That's because I used the export / import option in WP on the first blog to move the posts and comments over. However, normal posts on the second blog do NOT have this automatic permalink issue when I use dashes in the post titles. WP just ignores them when creating the permalink.

    Is there a way around this? I need it to display the actual dash in the htaccess file or apparently it won't redirect. I'm not sure why it doesn't treat them as the same (WP does -- if I visit the URL I posted above, it automatically reformats to show the dash in the URL again).

    I'd just like to get this cleared up so I can finish the redirects and pull the posts off the original blog.

    Thanks!
     
    jhmattern, Jan 26, 2010 IP
  2. davede

    davede Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi,

    got the same problem. wordpress has annoyingly put the %e2%80%93 character into my urls and now i can't seem to redirect them.

    did you ever find a solution?
     
    davede, Jul 28, 2011 IP