Support » Plugin: Redirection » Redirecting when old Drupal URLs don’t exactly match new WordPress URls

  • Resolved Tony Zeoli



    I have a major site I’m working on where we did a Drupal to WordPress migration. The problem was that the old Drupal URLs don’t contain certain words like “and, or, for” that are now in the new WordPress URLs.

    I read in the documentation that you can set a regex rule that accounts for URLs that don’t exactly match.

    The other issue I have is something like this: (drupal) to

    If I set a rule to redirect all URLs: ^/(.*) to /article/$1

    Then all the login and sitemap and robots urls are going to be affected by the redirection and I won’t be able to login to the site. How do I account for that?

    Does that make sense?

    Here’s an example of a URL that I want to redirect:

    Drupal: /giveaway/enter-win-gorgeous-random-house-tote-bag-full-amazing-bestsellers

    WordPress: /giveaway/enter-to-win-a-gorgeous-random-house-tote-bag-full-of-amazing-bestsellers

    Some genius early on in the Drupal version used some module to restrict the permalink from using words like at, for, or, and.

    How the URLs don’t match. Sigh.

    And, somehow one of the URL paths in Drupal has underscores and not hyphens:


    • This topic was modified 1 month, 1 week ago by  Tony Zeoli. Reason: more info
    • This topic was modified 1 month, 1 week ago by  Tony Zeoli.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Sorry, I may have gotten that wrong. I think it’s /1$

    Plugin Author John Godley


    Based on your description I don’t think regular expressions are a good fit – you requirements are not particularly regular. Instead I would suggest adding a redirect for every page.

    Okay, thanks.

    Yeah, the biggest issue is that the person running the Drupal site added some module early on that eliminated indefinite articles and conjunctions from the Drupal URL for SEO purposes, possibly in the belief that striking those words from the URL had some SEO benefit. So, once you export those URLs from Drupal, you can’t match them up with their WordPress URLs in Redirection, because it’s hard to match them up in a spread sheet and get them up in Redirection.

    Such a mess.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.