Support » Plugin: Redirection » how do I write a regular expression?

  • I need help with a regular expression please. I am an old dog so some of this makes little sense to me:
    Advanced users can make use of regular expressions to reduce the number of redirections they need to create. A regular expression is basically a pattern that tells the plugin how to match. For example:


    This pattern tells the plugin that you want to match a URL that looks
    I created a stand alone website
    but many different queries like

    john deere birthday cake
    john deere birthday cake ideas
    john deere birthday cake pictures
    john deere birthday cakes
    john deere birthday ideas
    john deere birthday invitations
    john deere birthday parties
    john deere birthday party
    john deere birthday party decorations
    john deere birthday party ideas
    john deere birthday party invitations
    john deere birthday party supplies
    john deere birthday supplies
    john deere birthday theme
    john deere cake
    john deere cake ideas
    john deere cakes
    john deere cakes ideas
    john deere cakes pictures
    john deere decals
    john deere invitations
    john deere party
    john deere party favors
    john deere party ideas
    john deere party invitations
    john deere party supplies
    john deere party theme
    john deere striping kit
    john deere theme party

    still come to my original site and end up on wrong pages.
    I could redirect each query separately but that would be a real pain.
    can someone please tell me the regular expression I need to use to redirect all queries containing “john deere” to the proper site.
    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • esmi


    Forum Moderator

    This isn’t really a WordPress issue. Try asking on a general forum or use a resource like

    I appreciate your reply, truly.
    But this is the thread for the redirection plugin to which I specifically referred to.
    I got here from the plugin.
    maybe some other person will be kinder and help me.

    But this is the thread for the redirection plugin to which I specifically referred to.

    While that is true regarding issues related to the plugin in general, the subject of regular expressions in particular, might move your question beyond general WordPress or plugin related knowledge. Understanding regular expressions is not exclusive to WordPress or it’s plugins.

    Lots of good stuff out there about using regex – regular expressions tutorial
    understanding regular expressions

    Thanks to both of you.
    Really I guess I’ll hire a freelancer.
    I had just hoped that someone would write the expression and show me.
    Until today I never even heard of regular expressions.
    Thank you all.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘how do I write a regular expression?’ is closed to new replies.