bulk redirection issue

#976191
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    We apologize for the issue you are facing with bulk redirection. To achieve the redirection you want using regex, you can use the following regex pattern:

    Regex Source URL:

    /the-westin-pune-koregaon-park-strengthens-its-core-team-with-strategic-appointments/([0-9]+).html

    Destination URL:

    /the-westin-pune-koregaon-park-strengthens-its-core-team-with-strategic-appointments/

    This regex will match any URL that follows the structure you provided and will redirect it to the clean URL without the post ID and .html extension.

    Steps to Add the Redirect in Rank Math:

    1. Go to Rank Math in your WordPress dashboard.
    2. Navigate to Redirections.
    3. In the From URL field, enter the regex source URL above.
    4. In the To URL field, enter the destination URL.
    5. Make sure to select Regex as the matching type.
    6. Click on Add Redirection to save your changes.

    If you have multiple posts with different IDs but following the same structure, you can modify the regex accordingly. For example, if you want to generalize it for all posts under that path, you can use:

    General Regex Source URL:

    /the-westin-pune-koregaon-park-strengthens-its-core-team-with-strategic-appointments/([0-9]+).html

    And set the destination URL as:

    /the-westin-pune-koregaon-park-strengthens-its-core-team-with-strategic-appointments/

    This will redirect any post ID under that specific path to the clean URL.

    If you have further questions or need assistance with additional URLs, feel free to reply to this ticket, and a human agent from our support team will assist you further!

    Sources:
    How to Redirect Posts After Changing URLs » Rank Math
    How to Use Regex Redirects in Rank Math » Rank Math
    How to Set Up Redirections » Rank Math

    i have total 3000 url to redirect, so give me regex for all pages

    Hello,

    Please follow the following regex rule when creating a redirection using our plugin:

    Source URL: (.*)([0-9]+).html
    Type: Regex
    Destination URL: /$1

    Here’s a guide to creating a redirection with our plugin: https://rankmath.com/kb/setting-up-redirections/

    Don’t hesitate to get in touch with us if you have any other questions.

    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 3 replies - 1 through 3 (of 3 total)

The ticket ‘bulk redirection issue’ is closed to new replies.