Request for Assistance with Redirect Modification and Restoration of Blog URL St

#869483
  • Resolved Wakesquare
    Rank Math free

    Dear Rank Math support,

    I hope this message finds you well. I am reaching out to request assistance regarding the URL structure of my website, e.g. my-website.com. I would like to restore the /blog path for the blog articles and need confirmation on the steps required to make this change.

    Current Situation:
    At present, the blog URL structure is configured as follows:

    Blog article URLs are in the format: https://my-website.com/article-name
    Blog category URLs are in the format: https://my-website.com/category/category-name

    Current Redirects:
    I have set up the following redirects to manage the situation:

    Article Redirects:
    blog/(.*) → https://my-website.com/$1
    (Regex)
    301

    Category Redirects:
    blog/category/(.*) → https://my-website.com/category/$1
    (Regex)
    301

    Restoration Plan:
    I would like to restore the original URL structure, which includes the /blog path for articles and categories. To this end, I plan to execute the following steps:

    Create Inverse Redirects:

    For Blog Articles:
    ^([a-zA-Z0-9-]+)$ → /blog/$1
    (Regex)
    301

    For Blog Categories:
    ^category/(.*)$ → /blog/category/$1
    (Regex)
    301

    Remove Current Redirects:
    Articles:
    blog/(.*) → https://my-website.com/$1
    (Regex)
    301

    Categories:
    blog/category/(.*) → https://my-website.com/category/$1
    (Regex)
    301

    Request for Confirmation and Advice:
    I kindly ask you to confirm if the described plan for inverting the redirects and restoring the URL structure is correct. Additionally, if there are any further recommendations or precautions to take, I would appreciate your advice.

    Explanation of the Situation:
    In the past, I inadvertently modified the blog URL structure by shortening it (removing the /blog path) due to an oversight. I realized the issue only a month later, after Google had already begun indexing the new URLs. To avoid further complications, we decided to maintain the shortened structure and set up redirects. However, this structure is inconsistent with the rest of the site, which follows a more organized and clear URL structure. Now, I am wondering if it would be wise to restore the original blog path to improve site coherence and SEO positioning, considering that after this shortening change, the site’s SEO ranking has not continued its growth.

    Thank you in advance for your assistance. I look forward to your response.

    Best regards,
    Federico

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

    Unfortunately, the regex redirection will not work when you want to redirect from “/postname” to “blog/postname”. If you want to redirect with Rank Math redirection, you’ll have to create individual redirections for each URL.

    Alternatively, you can use an external plugin like Permalink Manager Lite to redirect your URLs.

    For the category redirect use the following:

    Source URL: category/(.*)
    Match Type: Regex
    Destination URL: /blog/category/$1
    Redirection Type: 301 Permanent

    Let us know how this goes. Also, let us know if you have further questions or concerns.

    Thank you.

    Wakesquare
    Rank Math free

    Ok, thanks for the explanation. I should be able to do the surgery next week. I’ll send you feedback if needed. Thanks!

    Hello,

    Sure, let us know how this goes.

    Meanwhile, if you have any other concerns, please don’t hesitate to contact us anytime so we can assist you further.

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

The ticket ‘Request for Assistance with Redirect Modification and Restoration of Blog URL St’ is closed to new replies.