temporary wildcard redirect

#387683
  • Resolved antonnb
    Rank Math free

    Hi

    im migrating of open journal to WordPress , basically im continuing this thread
    https://support.rankmath.com/ticket/wildcard-redirect-5/

    i have many url from my previous cms with pattern like this one

    https://domain.com/index.php/category1/index/index
    https://domain.com/index.php/category1/about
    https://domain.com/index.php/category1/about/editorialTeam
    https://domain.com/index.php/category1/about/editorialPolicies
    https://domain.com/index.php/category1/about/submissions
    https://domain.com/index.php/category1/about/siteMap
    https://domain.com/index.php/category1/about/aboutThisPublishingSystem
    https://domain.com/index.php/category1/search
    https://domain.com/index.php/category1/search/authors
    https://domain.com/index.php/category1/search/titles
    https://domain.com/index.php/category1/issue/current
    https://domain.com/index.php/category1/issue/archive
    https://domain.com/index.php/category1/issue/view/3935
    https://domain.com/index.php/category1/article/view/74775
    https://domain.com/index.php/category1/article/view/74775/44354
    https://domain.com/index.php/category1/article/view/74686

    what im trying to do is set up temporary redirect anything start with https://domain.com/index.php/category1 to https://domain.com/category1

    can i do this with rankmath redirection?

    i tried with solution from question mention above but it seems wordpress automatically redirect any index.php to root domain

    so using solution from thread above giving me this result

    https://domain.com/index.php/category1/about >>>302 https://domain.com/category1/about (not exist 404)
    while what i wanted is

    https://domain.com/index.php/category1/about >>>302 https://domain.com/category1 (200)

Viewing 1 replies (of 1 total)
  • Prabhat
    Rank Math agency

    Hello,

    Thank you for contacting the support.

    The solution provided in that ticket is a bit different from your requirement. Basically, you would need to provide a static destination URL instead of a dynamic one.

    Please set up a Regex redirection with the below values and see if that helps:

    Source: index.php/category1/(.*)
    Type: RegEx
    Destination: https://domain.com/category1/

    Please replace https://domain.com in the above destination URL with your actual domain.

    Let us know how that goes.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘temporary wildcard redirect’ is closed to new replies.