Viewing 2 replies - 1 through 2 (of 2 total)
  • Why you want to re-order redirect (I can imagine situation, but this rather relate to incorrect redirect rule). In most cases, it is easier to use REGEX

    Thread Starter ardalanme

    (@ardalanme)

    I don’t think it is related to incorrect redirect rules. I’m able to use regex, but it doesn’t solve my problem.

    I’m developing a new e-commerce site for an old company. The URLs in the old site were like:

    /si/ui_public/catalog/category1.aspx
    /si/ui_public/catalog/category2.aspx
    ...

    There is a new URL structure on the new WP-based site, and some categories do not exist on the new site anymore. Let’s say category2 doesn’t exist on the new site, but category1 does.

    So I want to redirect
    /si/ui_public/catalog/category1.aspx
    to
    /catalog/category1/
    (There are ~40 redirects like this)

    And I want to redirect any URL that’s not covered by the redirects defined before, to the main catalog page (/catalog/). But it’s not currently easy to do so using this plugin.

    I could use regex and do something like: \/si\/ui_public\/catalog\/(?!(category2|category5|...))[^\/]*\.aspx
    But then I’d have to list more than 40 categories in a relatively complex regex.

    The ability to add an order number to redirects could easily solve all this.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Redirect Order’ is closed to new replies.